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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: