Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350685

Summary: PDF Output line-height default value (normal) within text blocks is to small
Product: z_Archived Reporter: David Ebers <info>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: RESOLVED FIXED QA Contact: Xiaoying Gu <bluesoldier>
Severity: normal    
Priority: P3 CC: bluesoldier, h.vonbargen, hustlg, info, s.miguelgomes, stefan-wagner
Version: 3.7.0   
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Example Report
none
Screenshot BIRT 2.6 vs. BIRT 3.7 none

Description David Ebers CLA 2011-06-29 07:10:32 EDT
Build Identifier: 20110615-0604

After upgrade from Helios/Birt 2.6 to Indigo/Birt 3.7 all our existing reports look different. The line-height is much smaller. So we guess that the default value has been changed or is missing. We can reproduce the problem either in the Viewer and using the Report Engine. HTML output on the other hand looks good.

http://linog.t-provider.de/screen_bug_BIRT.png

 

Reproducible: Always

Steps to Reproduce:
1. create new report
2. add text box with a few lines of text
3. generate the PDF report
4. compare output of Birt2.6 vs. Birt 3.7
Comment 1 David Ebers CLA 2011-06-29 07:12:02 EDT
Created attachment 198815 [details]
Example Report
Comment 2 David Ebers CLA 2011-06-29 07:13:06 EDT
Created attachment 198816 [details]
Screenshot BIRT 2.6 vs. BIRT 3.7
Comment 3 Stefan Wagner CLA 2011-07-13 03:42:19 EDT
Same problem here after upgrading from 2.6.2 to 3.7 (on a Windows and a Mac machine).
Are there any new insights or known workarounds?
Comment 4 Gang Liu CLA 2011-07-13 04:15:44 EDT
The algorithm of line-height is changed in 3.7.0. After this change, line-height in pdf is similar with its in browser for TrueType font.
For generic font, line-height is different  since different concrete font may be selected. event in browser, IE may be different with FireFox.


1. If the user need output exactly same layout in PDF/HTML, they should use TrueTypeFont.

2. If the user need size optimize for PDF, they can use generic font. The layout is correct for PDF as the pagination uses PDF setting.

3. If the user need use the type 1 font but still want to keep the HTML layout same with PDF, they can define the line height.
Comment 5 Xiaoying Gu CLA 2011-07-25 22:06:48 EDT
*** Bug 352942 has been marked as a duplicate of this bug. ***
Comment 6 Xiaoying Gu CLA 2011-07-25 22:08:35 EDT
Reopen.
Comment 7 Gang Liu CLA 2011-07-25 22:10:19 EDT
fixed
Comment 8 Henning von Bargen CLA 2011-09-14 10:26:11 EDT
(In reply to comment #7)
> fixed

I don't understand the resolution.

Will the PDF output in 3.7.1 be like in 2.6.2 again or like in 3.7.0?

This is quite important for those BIRT users with existing PDF output reports (read: almost all users).

If BIRT 3.7.0 breaks existing reports, all those reports have to be changed manually.

And we have to know in advance if explicitly setting the line height is a temporary workaround for 3.7.0 only or if it will be necessary for all future versions.
Comment 9 Henning von Bargen CLA 2011-09-16 08:05:33 EDT
(In reply to comment #8)
> (In reply to comment #7)
> > fixed
> I don't understand the resolution.
> Will the PDF output in 3.7.1 be like in 2.6.2 again or like in 3.7.0?
> This is quite important for those BIRT users with existing PDF output reports
> (read: almost all users).
> If BIRT 3.7.0 breaks existing reports, all those reports have to be changed
> manually.
> And we have to know in advance if explicitly setting the line height is a
> temporary workaround for 3.7.0 only or if it will be necessary for all future
> versions.

Today I tested with birt-report-designer-all-in-one-3_7_1-S20110913.zip.

The output looks the same as with 2.6.2 again (fine!). The lines are no longer set as dense as with 3.7.0. 

So it seems to me that the bug is fixed indeed and that the future(*) default behavior is like it has been with BIRT 2.6.2.

(*) from BIRT 3.7.1 onward.