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

Andreas Lehmkühler commented on PDFBOX-882:
-------------------------------------------

Are you sure that your're using the recent version 1.3.1 of PDFBox? According 
to your stacktrace it seems that you are using version 1.1.0.
Furthermore you have to install the ImageIO libs as mentioned in PDFBOX-554 to 
add JPX/JPEG2000 support 

> pdmodle.PDPage  'convertToImage'  throws IOException
> ----------------------------------------------------
>
>                 Key: PDFBOX-882
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-882
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.3.1
>         Environment: windows xp. java 1.6
>            Reporter: yizhangyin
>         Attachments: beyond-postgraduate-study.pdf
>
>
> I had following code :
> document = PDDocument.load(filename);
> pages = document.getDocumentCatalog().getAllPages();
> int currentPage = 1  //eg: current page = 1
> BufferedImage bufferedImage = 
> pages.get(currentPage).convertToImage(BufferedImage.TYPE_INT_RGB    , 96 /* 
> dpi */);
> stack track printing:
> 2/11/2010 11:31:54 AM org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap 
> getRGBImage
> SEVERE: java.io.IOException: Unknown stream filter:COSName{JPXDecode}
> java.io.IOException: Unknown stream filter:COSName{JPXDecode}
>       at 
> org.apache.pdfbox.filter.FilterManager.getFilter(FilterManager.java:102)
>       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:137)
>       at 
> org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:75)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:552)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:248)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:207)
>       at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:106)
>       at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:698)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to