ICEpdf
  1. ICEpdf
  2. PDF-249

IText 5.03 incorrectly specifying CCITTFax image K value

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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 PDF-249 added fall back code to the ccittfax k value algorithm selection code. If an error occurs during decode the exception is caught and the T6 algorithm is used to decode the image as a last resort. This address some iText mailformed PDFs.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Stream.java
        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 4.1.3 [ 10257 ]
        Hide
        Patrick Corless added a comment -

        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.

        Show
        Patrick Corless added a comment - 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.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000EUK1g]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: