Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.1.4
-
Fix Version/s: 4.2
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
Description
A client has sent in two confidential files which contain document scans saved using different CCITTFax encodings. ICEpdf can't seem to render the images, I suspect the files are encoded using the same PDF generator but there are no clues either way.
The images render either white or black and there are no exceptions in the logs.
The images render either white or black and there are no exceptions in the logs.
I got a poke form Support to take another look at this one. On closer inspection we could load this PDF correctly prior to the 4.1.0 CCITTFax updates. Our older CCITTFaxDecoder class does some funky stuff to try and load propert TIFF image header information which is used by JAI to load the image.
It turns out that the header work and JAI can load the image. I adjust the stream class to first try and load the fax with JAI and upon failure will fill use the newer CCITTFax code which for the most part does a pretty good job at handling 4.1, 4.2 and 6 compression.