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

Tilman Hausherr commented on PDFBOX-3678:
-----------------------------------------

Current version is 2.0.4. But I am able to display your file with 2.0.3 and 
2.0.0 too with PDFDebugger. Make sure there is no old stuff in your classpath. 
The current version of the jbig2 decoder is 1.6.5.

Btw, what is this? 
{{com.accusoft.pdfps.redaction.utils.pdfbox.ImageTransformsCalculator.processOperator}}


> JBIG2 decoding error in 2.0
> ---------------------------
>
>                 Key: PDFBOX-3678
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3678
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Roman
>         Attachments: BTB0010010004.1-Bit_Jbig2.pdf
>
>
> After migration from PdfBox 1.8 to 2.0, we started to get the following 
> error, when processing attached PDF (on 1.8 it was working fine):
> {code}
> java.io.IOException: Could not read JBIG2 image
>       at org.apache.pdfbox.filter.JBIG2Filter.decode(JBIG2Filter.java:91) 
> ~[pdfbox-2.0.3.jar:2.0.3]
>       at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:69) 
> ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:162) 
> ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:235)
>  ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.<init>(PDImageXObject.java:147)
>  ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> org.apache.pdfbox.pdmodel.graphics.PDXObject.createXObject(PDXObject.java:70) 
> ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> org.apache.pdfbox.pdmodel.PDResources.getXObject(PDResources.java:409) 
> ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> com.accusoft.pdfps.redaction.utils.pdfbox.ImageTransformsCalculator.processOperator(ImageTransformsCalculator.java:78)
>  ~[classes/:?]
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:472)
>  ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:446)
>  ~[pdfbox-2.0.3.jar:2.0.3]
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
>  ~[pdfbox-2.0.3.jar:2.0.3]
> Caused by: java.io.EOFException
>       at 
> javax.imageio.stream.ImageInputStreamImpl.readBit(ImageInputStreamImpl.java:652)
>  ~[?:1.8.0_101]
>       at com.levigo.jbig2.SegmentHeader.e(gn:75) 
> ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at com.levigo.jbig2.SegmentHeader.D(gn:208) 
> ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at com.levigo.jbig2.SegmentHeader.<init>(gn:67) 
> ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at com.levigo.jbig2.e.k(hm:148) ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at com.levigo.jbig2.e.<init>(hm:204) ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at com.levigo.jbig2.JBIG2ImageReader.D(uf:275) 
> ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at com.levigo.jbig2.JBIG2ImageReader.D(uf:233) 
> ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at com.levigo.jbig2.JBIG2ImageReader.read(uf:29) 
> ~[pdfone-5.3.17.507.jar:5.3.17.507]
>       at org.apache.pdfbox.filter.JBIG2Filter.decode(JBIG2Filter.java:86) 
> ~[pdfbox-2.0.3.jar:2.0.3]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to