You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/10/16 07:26:05 UTC

[jira] [Comment Edited] (PDFBOX-3031) converting PDF to PNG image is scrammbled

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

Tilman Hausherr edited comment on PDFBOX-3031 at 10/16/15 5:25 AM:
-------------------------------------------------------------------

By itself, "is scrammbled" / "is a mess" / "does not match" is not a helpful bug report. Please attach the image you get, and mention if there is any log output. Here's the rendering that I get with 1.8.10.


was (Author: tilman):
By itself, "is scrammbled" / "is a mess" is not a helpful bug report. Please attach the image you get, and mention if there is any log output. Here's the rendering that I get with 1.8.10.

> 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, test11860605136879634725.png
>
>
> code below image does not match the PDF:
> {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}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org