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

IIOException: Error 2 when displaying PDF containing CCITT Group 3 compressed images

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.1
    • PDModel
    • None

    Description

      A client sent me a PDF that failed with:
      SEVERE: javax.imageio.IIOException: Error 2
      at com.sun.media.imageioimpl.plugins.tiff.TIFFFaxDecompressor.decodeBlackCodeWord(TIFFFaxDecompressor.java:1389)
      com.sun.media.imageioimpl.plugins.tiff.TIFFFaxDecompressor.decodeT6(TIFFFaxDecompressor.java:1140)
      com.sun.media.imageioimpl.plugins.tiff.TIFFFaxDecompressor.decodeRaw(TIFFFaxDecompressor.java:680)
      com.sun.media.imageio.plugins.tiff.TIFFDecompressor.decode(TIFFDecompressor.java:2514)

      It turns out this happens with images using CCITT Group 3 (T.4) compressed images with no "K" key in the DecodeParams (i.e. K=0). Group 4 is set on the TIFF which leads to a decoding error. Extracting the TIFF, the software info field is malformed, too.

      Attachments

        Activity

          People

            jeremias@apache.org Jeremias Maerki
            jeremias@apache.org Jeremias Maerki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: