pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4620) renderImageWithDPI renders empty / white image page though it's not white.
Date Sun, 04 Aug 2019 06:59:00 GMT

    [ https://issues.apache.org/jira/browse/PDFBOX-4620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16899576#comment-16899576
] 

Tilman Hausherr commented on PDFBOX-4620:
-----------------------------------------

I tried and it worked fine. Did you get any log output? Are your log outputs enabled? Because
the image is a JPEG2000 image and this will only work if you have the needed plugins installed.

> 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
>            Priority: Major
>         Attachments: Bolts From the Blue From Cold War Warrior to Chief of the Air Staff.pdf,
LOCATION.jpg
>
>
> 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


Mime
View raw message