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

                 Key: PDFBOX-834
                 URL: https://issues.apache.org/jira/browse/PDFBOX-834
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
            Reporter: Jeremias Maerki
            Assignee: Jeremias Maerki
             Fix For: 1.3.0


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to