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.