You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Bertrand GILLIS <be...@mainsysgroup.com> on 2010/02/23 13:23:41 UTC

Invalid page rendering while printing a pdf with an image inside

As soon as an image is included inside a page, all pages after that page 
are rendered only within the boundaries of this image !?!?!

Steps to reproduce:
- create a pdf with 2 pages
- add an image on the first page (50px,50px) and centered on that page
- add a text on the second page and centered on that page
- print the pdf throught org.apache.pdfbox.PrintPDF

If you use org.apache.pdfbox.PDFToImage instead, all pages are correctly 
rendered. That's kinda weird !

Does anybody have seen this ? I can't imagine nobody is including image 
in their pdf files.

I've submitted this bug to pdfbox JIRA 
<https://issues.apache.org/jira/browse/PDFBOX-632>.