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
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #23753 | Mon Jan 10 07:48:03 MST 2011 | patrick.corless | |
| Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
|
| Field | Original Value | New Value |
|---|---|---|
| Salesforce Case | [] | |
| Fix Version/s | 4.1.3 [ 10257 ] |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Salesforce Case | [5007000000EUK1g] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |

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.