Arūnas Bendoraitis created PDFBOX-4620:
------------------------------------------

             Summary: renderImageWithDPI renders empty / white image page 
though it's not white.
                 Key: PDFBOX-4620
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4620
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.16
            Reporter: Arūnas Bendoraitis
         Attachments: Bolts From the Blue From Cold War Warrior to Chief of the 
Air Staff.pdf

It seems like renderImageWithDPI can't handle correctly this PDF file 
[attaching] (all others PDF files which I tested were fine).

I'm using the latest version pdfbox-2.0.16 and jbig2-imageio-3.0.2.

Here is the simplified code:
{code:java}
try (final PDDocument doc = PDDocument.load(new File("LOCATION.pdf")))
{
    final PDFRenderer pdfRenderer = new PDFRenderer(doc);

    final BufferedImage pageImage = pdfRenderer.renderImageWithDPI(0, 200, 
ImageType.RGB);

    ImageIO.write(pageImage, "jpg", new File("LOCATION.jpg"));
}
{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to