Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Doubled pages in PDF Export
Doubled pages in PDF Export [message #1106756] Wed, 11 September 2013 14:03 Go to next message
Robert Walter is currently offline Robert WalterFriend
Messages: 29
Registered: July 2011
Junior Member
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 14:35 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

What is your BIRT version? Any way you can reproduce this issue with a report using the sample database and attach it?

Michael

Developer Evangelist, Silanis
Re: Doubled pages in PDF Export [message #1106781 is a reply to message #1106778] Wed, 11 September 2013 14:38 Go to previous messageGo to next message
Robert Walter is currently offline Robert WalterFriend
Messages: 29
Registered: July 2011
Junior Member
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 15:24 Go to previous messageGo to next message
Robert Walter is currently offline Robert WalterFriend
Messages: 29
Registered: July 2011
Junior Member
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 16:08 Go to previous messageGo to next message
Robert Walter is currently offline Robert WalterFriend
Messages: 29
Registered: July 2011
Junior Member
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 05:27 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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?

Michael

Developer Evangelist, Silanis
Re: Doubled pages in PDF Export [message #1107430 is a reply to message #1107220] Thu, 12 September 2013 11:36 Go to previous messageGo to next message
Robert Walter is currently offline Robert WalterFriend
Messages: 29
Registered: July 2011
Junior Member
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 19:40 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Sorry. mwilliams.actuate at gmail

Michael

Developer Evangelist, Silanis
Re: Doubled pages in PDF Export [message #1108590 is a reply to message #1107681] Sat, 14 September 2013 03:24 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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.

Michael

Developer Evangelist, Silanis
Re: Doubled pages in PDF Export [message #1110008 is a reply to message #1108590] Mon, 16 September 2013 08:31 Go to previous messageGo to next message
Robert Walter is currently offline Robert WalterFriend
Messages: 29
Registered: July 2011
Junior Member
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 15:18 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

I just saw that you sent me an email of a smaller file. I'll take a look at that and let you know.

Michael

Developer Evangelist, Silanis
Re: Doubled pages in PDF Export [message #1117764 is a reply to message #1111683] Thu, 26 September 2013 19:49 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

I'm sorry for all the delays on this. Did you ever get it figured out?

Michael

Developer Evangelist, Silanis
Re: Doubled pages in PDF Export [message #1121102 is a reply to message #1117764] Mon, 30 September 2013 09:18 Go to previous messageGo to next message
Robert Walter is currently offline Robert WalterFriend
Messages: 29
Registered: July 2011
Junior Member
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 05:22 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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.

Michael

Developer Evangelist, Silanis
Re: Doubled pages in PDF Export [message #1736807 is a reply to message #1106756] Sat, 02 July 2016 03:02 Go to previous messageGo to next message
Cullen Bond is currently offline Cullen BondFriend
Messages: 4
Registered: June 2016
Junior Member
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 17:41 Go to previous message
Evert Olving is currently offline Evert OlvingFriend
Messages: 4
Registered: August 2013
Junior Member
Yes please. Can you please share your solution? Thanks!
Previous Topic:p tag space
Next Topic:RunTask+RenderTask vs. RunAndRenderTask
Goto Forum:
  


Current Time: Fri Apr 19 03:29:54 GMT 2024

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

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

Back to the top