[
https://issues.apache.org/jira/browse/PDFBOX-3031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960019#comment-14960019
]
Joseph Jezerinac commented on PDFBOX-3031:
------------------------------------------
{code:java}
try (PDDocument document = PDDocument.load(attachedFile)) {
PDPage page = (PDPage)
document.getDocumentCatalog().getAllPages().get(0);
File imageFile = File.createTempFile("test1", ".png");
imageFile.deleteOnExit();
BufferedImage image = page.convertToImage();
ImageIO.write(image, "png", imageFile);
// image file is a mess
}
{code}
> converting PDF to PNG image is scrammbled
> -----------------------------------------
>
> Key: PDFBOX-3031
> URL: https://issues.apache.org/jira/browse/PDFBOX-3031
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.10
> Reporter: Joseph Jezerinac
> Attachments: 10_15_15_Proposed_Order.pdf
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]