Skip to main content



      Home
Home » Archived » BIRT » Doubled pages in PDF Export
Doubled pages in PDF Export [message #1106756] Wed, 11 September 2013 10:03 Go to next message
Eclipse UserFriend
Hi,
I experience some strange behavior regarding page breaks and doubled page numbers in my exported PDF report.

I have a simple Master Page with a footer which is 15 mm high. This leads, depending on the data, to PDFs where tables that exceed one page are broken two times. After the first page break, only some rows of the table are displayed, while the final row(s) are displayed on yet another page. Like this:

###### Example structure #######

TABLE HEADER
-row
-row
// ... many rows
-row
PAGE FOOTER showing "Page 1"
-------- PAGE BREAK DUE TO END OF PAGE
TABLE HEADER // deliberatly repeated
-row
-row
// huge blank area
PAGE FOOTER showing "Page 1" // yes, the page has the same number than the one before
-------- PAGE BREAK
TABLE HEADER
-row
// huge blank area
PAGE FOOTER showing "Page 2"

#####################

When I remove the footer and tell each row of my table to avoid page breaks, everything seems to work correctly (though I do not see the page numbering since the footer's been removed). The page break interval of the table is set to 0 (the default of 40 is really... strange, especially since it's not available in the XML file, but that's another story).

The master page declares A4 as type, but I experienced the same with other types.
My guess is that the first page break happens due to the footer, but that BIRT does not "know" about it, which is why it does not change the value of the page number variable. The second page break then is the "correct" one done by BIRT.

Any suggestions how to solve this (since I cannot do without the footer)?
Re: Doubled pages in PDF Export [message #1106778 is a reply to message #1106756] Wed, 11 September 2013 10:35 Go to previous messageGo to next message
Eclipse UserFriend
What is your BIRT version? Any way you can reproduce this issue with a report using the sample database and attach it?
Re: Doubled pages in PDF Export [message #1106781 is a reply to message #1106778] Wed, 11 September 2013 10:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,
I'm using BIRT 4.2.2, sorry that I forgot to mention it in the first message. I'll give it a try to reproduce it and let you know.

Robert
Re: Doubled pages in PDF Export [message #1106808 is a reply to message #1106781] Wed, 11 September 2013 11:24 Go to previous messageGo to next message
Eclipse UserFriend
I wasn't successful, I'm afraid. I use an generated XMI file as input data, so my use case is in many ways different from a simple sample...

Anyway, I just saw that the issue is not there when I preview the report using the "view report as PDF" option... does this help you in helping me narrow the issue down?
Re: Doubled pages in PDF Export [message #1106839 is a reply to message #1106808] Wed, 11 September 2013 12:08 Go to previous messageGo to next message
Eclipse UserFriend
So I played a little with the PDFRenderOptions and setting IPDFRenderOption.PAGE_OVERFLOW to IPDFRenderOption.FIT_TO_PAGE_SIZE avoids the doubled pages... so my problem definitely comes from a page overflow... however, setting the option as I did scales the complete page down a bit to make it fit, which looks strange.
Can't I tell the renderTask to mind the lesser space on a page due to the footer? Or, shouldn't the renderer consider something like "less space on a page due to a footer" automatically?
Re: Doubled pages in PDF Export [message #1107220 is a reply to message #1106839] Thu, 12 September 2013 01:27 Go to previous messageGo to next message
Eclipse UserFriend
It should automatically do this. Any way you can attach your actual design? Or send it to me in email if you can't attach it?
Re: Doubled pages in PDF Export [message #1107430 is a reply to message #1107220] Thu, 12 September 2013 07:36 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,
I can do that (send it via mail). Could you provide a proper email address for that? Thank you!
Robert
Re: Doubled pages in PDF Export [message #1107681 is a reply to message #1107430] Thu, 12 September 2013 15:40 Go to previous messageGo to next message
Eclipse UserFriend
Sorry. mwilliams.actuate at gmail
Re: Doubled pages in PDF Export [message #1108590 is a reply to message #1107681] Fri, 13 September 2013 23:24 Go to previous messageGo to next message
Eclipse UserFriend
All of the tables and lists have page break intervals of 40 still set. You might try making them all 0. There are so many levels of embedded elements that it's definitely tough for me to tell what the issue is caused by.
Re: Doubled pages in PDF Export [message #1110008 is a reply to message #1108590] Mon, 16 September 2013 04:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,

okay, seems that I haven't sent you the latest version in which I went through all tables and lists to set the page break interval to 0, sorry.

I will try to reproduce the issue with a smaller file.

Robert
Re: Doubled pages in PDF Export [message #1111683 is a reply to message #1110008] Wed, 18 September 2013 11:18 Go to previous messageGo to next message
Eclipse UserFriend
I just saw that you sent me an email of a smaller file. I'll take a look at that and let you know.
Re: Doubled pages in PDF Export [message #1117764 is a reply to message #1111683] Thu, 26 September 2013 15:49 Go to previous messageGo to next message
Eclipse UserFriend
I'm sorry for all the delays on this. Did you ever get it figured out?
Re: Doubled pages in PDF Export [message #1121102 is a reply to message #1117764] Mon, 30 September 2013 05:18 Go to previous messageGo to next message
Eclipse UserFriend
No, unfortunately not.
Have you been able to reproduce the issue with the data I've send to you?
Re: Doubled pages in PDF Export [message #1138455 is a reply to message #1121102] Tue, 15 October 2013 01:22 Go to previous messageGo to next message
Eclipse UserFriend
Unfortunately not. I've had deadlines for other projects come up that have kept me out of here. I'm very sorry for the delay. I'll try to get a look at this sometime this week.
Re: Doubled pages in PDF Export [message #1736807 is a reply to message #1106756] Fri, 01 July 2016 23:02 Go to previous messageGo to next message
Eclipse UserFriend
I just solved a similar issue, are there any listeners to this thread?
Re: Doubled pages in PDF Export [message #1786625 is a reply to message #1736807] Tue, 08 May 2018 13:41 Go to previous message
Eclipse UserFriend
Yes please. Can you please share your solution? Thanks!
Previous Topic:p tag space
Next Topic:RunTask+RenderTask vs. RunAndRenderTask
Goto Forum:
  


Current Time: Sun Mar 23 04:02:22 EDT 2025

Powered by FUDForum. Page generated in 0.06408 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top