Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-81

Excetion while extracting images

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8.0-incubator
    • 1.8.0
    • Swing GUI

    Description

      [imported from SourceForge]
      http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1259747
      Originally submitted by guzzil on 2005-08-15 02:40.

      when trying to extract images from I pdf, i get exceptions
      like
      Exception in thread "main" 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:276)
      at
      org.pdfbox.cos.COSStream.doDecode(COSStream.java:240)
      at
      org.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:173)
      at
      org.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:205)
      at
      org.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:458)
      at
      org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:131)
      at
      org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:153)
      at
      org.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:117)
      at
      org.pdfbox.ExtractImages.extractImages(ExtractImages.java:169)
      at
      org.pdfbox.ExtractImages.main(ExtractImages.java:73)

      The pdfs are scanned images, which are afterwards
      optimized with Adobe Acrobats "optimize" function.

      pdfimages from xpdf can extract the images.

      I can send you a pdf with this error (it is to big for an
      upload).

      [comment on SourceForge]
      Originally sent by benlitchfield.
      Logged In: YES
      user_id=601708

      yes please upload the pdf to ftp.pdfbox.org and I will take a
      look at it.

      Ben Litchfield

      Attachments

        1. jbig2_src.zip
          111 kB
          Jukka Zitting
        2. FilterManager.java.diff
          0.8 kB
          Kenneth Berland
        3. COSName.java.diff
          0.5 kB
          Kenneth Berland
        4. JBIG2Filter.java
          2 kB
          Kenneth Berland
        5. pdfbox-81.PDXObjectImage.patch
          0.9 kB
          Kenneth Berland
        6. sigice9_172.Adobe.pdf
          18 kB
          Tilman Hausherr
        7. sigice9_172.CVISION.pdf
          9 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              Anonymous Anonymous
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: