Bug 460007 - PDF page numbers when page size causes pageBreak
Summary: PDF page numbers when page size causes pageBreak
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.3.2   Edit
Hardware: PC Linux
: P3 blocker with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Birt-Report-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 06:57 EST by Sachin Ramnani CLA
Modified: 2017-08-11 02:51 EDT (History)
2 users (show)

See Also:


Attachments
Test report to demonstrate the bug with incorrect page numbers. (9.71 KB, application/octet-stream)
2015-10-27 04:58 EDT, Christian Wagner CLA
no flags Details
The resulting pdf document with incorrect page numbers. (11.72 KB, application/pdf)
2015-10-27 04:59 EDT, Christian Wagner CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sachin Ramnani CLA 2015-02-16 06:57:58 EST
We are generating PDF reports using BIRT.
- We use the run and render task separately & in the rpt design we have used
- Page <value-of>pageNumber</value-of> of <value-of>totalPage</value-of> 
- Also we customize the rpt design using the BIRT Report Design Engine API, below lines we have used for PDF render option:

renderOption.setOption(IPDFRenderOption.PDF_TEXT_WRAPPING, true);
renderOption.setOption(IPDFRenderOption.PDF_HYPHENATION, true);

We see issues w.r.t. to page numbers getting displayed in the report in few cases.
==> specially when number of columns is more & as per above our requiremnets settings we did for render options, BIRT report applies the text wrap.
Now because of large content to be displayed in the report, same page contents are rendered in two pages, hence we see inconsistency in page numbers in final PDF Report.

Please provide solution what to be done here.
Our requirement is:
1. At run time any number of columns can be selected by user.
2. To achieve this we modify rptdesign using BIRT Design API report is generated fine as per our requirement except this page number issue.
Comment 1 Christian Wagner CLA 2015-10-27 04:55:56 EDT
We have the same problem. Our report contains text fields with longer html text. If this html text wraps over pages, page numbers won't be correct in the resulting pdf document. This bug occures only if the birt report will be executed with separate run and render method. If run+render method will be used instead, the page numbers will be fine. (But we need separate run and render steps because our reports contains a toc.)
 
We are using BIRT 4.4.2.

I'll add a simple text report to demonstrate the bug.
Comment 2 Christian Wagner CLA 2015-10-27 04:58:34 EDT
Created attachment 257534 [details]
Test report to demonstrate the bug with incorrect page numbers.
Comment 3 Christian Wagner CLA 2015-10-27 04:59:43 EDT
Created attachment 257535 [details]
The resulting pdf document with incorrect page numbers.
Comment 4 Anita Verma CLA 2017-08-11 02:51:20 EDT
I am also facing same issue. Is this issue fixed in any BIRT version?