You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Dan Sabin (JIRA)" <ji...@apache.org> on 2010/08/19 15:20:35 UTC
[jira] Created: (PDFBOX-795) PDPage convertToImage partially
generates image file and throws exception
PDPage convertToImage partially generates image file and throws exception
-------------------------------------------------------------------------
Key: PDFBOX-795
URL: https://issues.apache.org/jira/browse/PDFBOX-795
Project: PDFBox
Issue Type: Test
Components: PDModel
Affects Versions: 1.2.1
Reporter: Dan Sabin
Attachments: b.pdf, b.png
Converting a PDPage to an image results in an image file only being partially generated. Some text at the top of the file is created, but the majority of the page is not and an exception is thrown:
[ERROR] java.io.IOException: Unknown stream filter:COSName{JBIG2Decode}
java.io.IOException: Unknown stream filter:COSName{JBIG2Decode}
at org.apache.pdfbox.filter.FilterManager.getFilter(FilterManager.java:103)
at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:249)
at org.apache.pdfbox.cos.COSStream.doDecode(COSStream.java:221)
at org.apache.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:156)
at org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:211)
at org.apache.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:465)
at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:141)
at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:74)
at org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:567)
at org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:250)
at org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:208)
at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:112)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:718)
at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:689)
Is JBIG2Decode not a supported COSStream encoding?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.