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

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

Make sure that PDFOne has the latest version of the decoder, and/or submit the 
PDF to them (Does it work to decode the PDF file when you use PDFOne alone). 
Beside searching on stackoverflow, have a look at twelvemonkeys closed issues 
https://github.com/haraldk/TwelveMonkeys/ , I remember that there were similar 
problems.

jbig2-5.5.1.jar is from JPedal, I remember we tried this years ago and it 
didn't work at that time, see PDFBOX-81 and PDFBOX-1067.

Do you have a support contract with Gnostice, or is it some legacy library? If 
it is old, then why not remove the other decoder from the jar file?

What about this?
http://www.java2s.com/Code/Java/2D-Graphics-GUI/ExampleshowinghowtoresettheorderingofImageReaderSpisinImageIO.htm
 

> 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