ICEpdf
  1. ICEpdf
  2. PDF-777

Image stream decode results in zero length stream.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6_P01
    • Fix Version/s: 5.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The PDF in question has streams that are encoded using Crypt filters. There are three images on page two (10 0 obj, 5 0 obj, and 6 0 obj (smask of 5 0 obj)) which fail to decode correctly. I have yet to find the source of these issue but it would appear that ChunkInputStream.fillBufferFromInputStream() is failing.

      The rest of the document renders ok minus the absense of a header image on pages 5 and greated. Furhter investigation is need to try and determine the cause of this issue.

        Activity

        Hide
        Patrick Corless added a comment -

        The PDF in question is encrypted and uses crypt filters to encrypt the streams. The missing images is realated to a corner case where some images have a decodeParam dictionary which is also used by crypt filters. So when the images in question (the ones that aren't loaded) decodeParam is passed to the crypt filter setup no filter name is found and the default is never assigned resulting in the empty or unencryptable stream.

        I've touched up the code and all the images with the decodeParam no load correctly.

        Show
        Patrick Corless added a comment - The PDF in question is encrypted and uses crypt filters to encrypt the streams. The missing images is realated to a corner case where some images have a decodeParam dictionary which is also used by crypt filters. So when the images in question (the ones that aren't loaded) decodeParam is passed to the crypt filter setup no filter name is found and the default is never assigned resulting in the empty or unencryptable stream. I've touched up the code and all the images with the decodeParam no load correctly.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: