PDF issue on multi page report: only last page is correctly rendered

View: New views
5 Messages — Rating Filter:   Alert me  

PDF issue on multi page report: only last page is correctly rendered

by alfredoc () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a strange behavior: when creating a multi page report, every page before the last one appears to be 80% smaller than expected, and only the last report page looks correct.

In a n page report, from page 1 to page n-1, i have this:



And page n looks like this (expected content size):



I am using Eclipse Birt, Birt version 2.2.1.1 to create the reports.
I embedded the birt engine inside a JSF application deployed on a JBOSS server 4.3.0.GA

I created a report without defining anything in the master page, everything is correct.
Using any element in the master page and the rendering give me this pretty strange result.

The content, even somehow miniaturized is correct: layout ok, data ok, no problem.
But it's generated smaller on all but last page...

And of course, when generating a "one page" report, I do not have any trouble.

Please tell me it is something trivial I can easily fix...


Re: PDF issue on multi page report: only last page is correctly rendered

by alfredoc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bug fixed by setting PDFRenderOption differently:

Before correction:

final PDFRenderOption pdfOptions = new PDFRenderOption(options);
pdfOptions.setOption(IPDFRenderOption.FIT_TO_PAGE, new Boolean(true));
pdfOptions.setOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY, new Boolean(true));

After correction:

final PDFRenderOption pdfOptions = new PDFRenderOption(options);
pdfOptions.setOption(IPDFRenderOption.FIT_TO_PAGE, Boolean.TRUE);
pdfOptions.setOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY, Boolean.FALSE);


Re: PDF issue on multi page report: only last page is correctly rendered

by Padmanaban :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am also facing this problem in v2.2.2.

Please tell me in which version this fix is made.

Thanks
Paddy

alfredoc wrote:
Bug fixed by setting PDFRenderOption differently:

Before correction:

final PDFRenderOption pdfOptions = new PDFRenderOption(options);
pdfOptions.setOption(IPDFRenderOption.FIT_TO_PAGE, new Boolean(true));
pdfOptions.setOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY, new Boolean(true));

After correction:

final PDFRenderOption pdfOptions = new PDFRenderOption(options);
pdfOptions.setOption(IPDFRenderOption.FIT_TO_PAGE, Boolean.TRUE);
pdfOptions.setOption(IPDFRenderOption.PAGEBREAK_PAGINATION_ONLY, Boolean.FALSE);

Re: PDF issue on multi page report: only last page is correctly rendered

by alfredoc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Padmanaban wrote:
Please tell me in which version this fix is made.
Hi Paddy,

We are still using 2.2.1.1
I have not tried to see what it does in 2.2.2.

And just to be sure we understand each other this is not a BIRT code extract : this fix was applied in our own code calling the BirtEngine .

In our JSF application, we integrate the Birt viewer engine.
And the pasted lines that you can are those we use to define the PDF rendering options.

If you have the same kind of issue with PDF rendering and are doing your own integration you could try this.

Part of our bug investigation was first to use the Birt WebWiewerApplication : then we saw that the PDF export looked perfect.

Then, it was obviously some parameter setup of the engine to be corrected.

Re: PDF issue on multi page report: only last page is correctly rendered

by SanjayGupta :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I know this is an very old post but i was wodering if you found any solutions to this problem. I am on 2.3.2 and facing the same issue.
Thanks
Sanjay
alfredoc wrote:
Padmanaban wrote:
Please tell me in which version this fix is made.
Hi Paddy,

We are still using 2.2.1.1
I have not tried to see what it does in 2.2.2.

And just to be sure we understand each other this is not a BIRT code extract : this fix was applied in our own code calling the BirtEngine .

In our JSF application, we integrate the Birt viewer engine.
And the pasted lines that you can are those we use to define the PDF rendering options.

If you have the same kind of issue with PDF rendering and are doing your own integration you could try this.

Part of our bug investigation was first to use the Birt WebWiewerApplication : then we saw that the PDF export looked perfect.

Then, it was obviously some parameter setup of the engine to be corrected.