You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Arūnas Bendoraitis (JIRA)" <ji...@apache.org> on 2019/08/04 06:23:00 UTC

[jira] [Created] (PDFBOX-4620) renderImageWithDPI renders empty / white image page though it's not white.

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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org