[ 
https://issues.apache.org/jira/browse/PDFBOX-229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson closed PDFBOX-229.
------------------------------


> error with PDFToImage
> ---------------------
>
>                 Key: PDFBOX-229
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-229
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: PDModel
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1620717
> Originally submitted by nobody on 2006-12-22 02:42.
> Trying to convert to images the pages of a pdf file, i get the following 
> error (we are using version 0.7.3). I attach the pdf file that produces the 
> error.
> My email is jesus.cri...@altia.es
> C:\Documents and Settings\Administrador\Escritorio\prueba>java 
> org.pdfbox.PDFToI
> mage -imageType png fichero1.pdf
> java.io.IOException: Unknown stream filter:COSName{JBIG2Decode}
>         at org.pdfbox.filter.FilterManager.getFilter(FilterManager.java:116)
>         at org.pdfbox.cos.COSStream.doDecode(COSStream.java:262)
>         at org.pdfbox.cos.COSStream.doDecode(COSStream.java:235)
>         at org.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:170)
>         at 
> org.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:22
> 6)
>         at org.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:481)
>         at 
> org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap
> .java:138)
>         at org.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:81)
>         at 
> org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:
> 452)
>         at 
> org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java
> :215)
>         at org.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:182)
>         at 
> org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:
> 452)
>         at 
> org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java
> :215)
>         at 
> org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:17
> 4)
>         at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:104)
>         at org.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:657)
>         at org.pdfbox.PDFToImage.main(PDFToImage.java:183)
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/fontbox/cmap/CMap
> Parser
>         at org.pdfbox.pdmodel.font.PDFont.parseCmap(PDFont.java:534)
>         at org.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:387)
>         at 
> org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:325)
>         at org.pdfbox.util.operator.ShowText.process(ShowText.java:64)
>         at 
> org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:
> 452)
>         at 
> org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java
> :215)
>         at org.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:182)
>         at 
> org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:
> 452)
>         at 
> org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java
> :215)
>         at 
> org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:17
> 4)
>         at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:104)
>         at org.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:657)
>         at org.pdfbox.PDFToImage.main(PDFToImage.java:183)
> C:\Documents and Settings\Administrador\Escritorio\prueba>
> [comment on SourceForge]
> Originally sent by benlitchfield.
> Logged In: YES 
> user_id=601708
> Originator: NO
> Two comments
> 1)"NoClassDefFoundError: org/fontbox/cmap/CMap" Make sure you have FontBox in 
> your classpath
> 2)JBIG2 is not supported by Java yet, but you can vote for it to get 
> implemented!
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4799898
> Ben



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to