Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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):

      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]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rmakarov Roman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: