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

Tilman Hausherr edited comment on PDFBOX-3031 at 10/16/15 6:29 PM:
-------------------------------------------------------------------

So there it is:
{quote}
SEVERE: Can't find an ImageIO plugin to decode the JBIG2 encoded datastream.
{quote}
Get the levigo plugin as described on
https://pdfbox.apache.org/1.8/dependencies.html

{code}
        <dependency>
            <groupId>com.levigo.jbig2</groupId>
            <artifactId>levigo-jbig2-imageio</artifactId>
            <version>1.6.3</version>
        </dependency>
{code}

Does it work?

(The warning messages are not important here, as this is an invisible OCR font)


was (Author: tilman):
So there it is:
{quote}
SEVERE: Can't find an ImageIO plugin to decode the JBIG2 encoded datastream.
{quote}
Get the levigo plugin as described on
https://pdfbox.apache.org/1.8/dependencies.html

{code}
        <dependency>
            <groupId>com.levigo.jbig2</groupId>
            <artifactId>levigo-jbig2-imageio</artifactId>
            <version>1.6.3</version>
        </dependency>
{code}

Does it work?

> converting PDF to PNG image is scrammbled
> -----------------------------------------
>
>                 Key: PDFBOX-3031
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3031
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 1.8.10
>            Reporter: Joseph Jezerinac
>         Attachments: 10_15_15_Proposed_Order.pdf, 2015-10-16_1111.png, 
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to