Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.1.2
-
Fix Version/s: 4.1.3
-
Component/s: Core/Parsing
-
Labels:None
-
Environment:any
Description
Recently we've been seeing quite a few malformed PDF documents generated with iText. In this particular case the CCITTFax image is encoded with the wrong K value and as a result we don't decode the image using the correct algorithm.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Added a try catch around the code that matches a K value to a ccittfax algorithm. If an error occurs while decoding the image the fall back code will try the T6 algorithm as a last resort. The PDF in question has the wrong K value but using T6 renders the image. This fix is a work around for the iText encoding issue.