ICEpdf
  1. ICEpdf
  2. PDF-889

Extra data in image stream can cause issue when applying indexed color model

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.2
    • Fix Version/s: 6.0
    • Component/s: Imaging
    • Labels:
      None
    • Environment:
      any

      Description

      The PDF in question has an inline image on page 70 that loads a a black image. The issue is because of a data length issue between the index colour model data and the data length of the actual image stream. As far as I can tell this issue was introduced in PDF-866 when fixing up some stuff with inline image parsing. A side effect of this work is that the data stream can be a little long.

      I've update the code to use the length of the needed data and not the data length of the stream. Image appears correctly.

        Activity

        Patrick Corless created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #45071 Thu Jun 18 14:09:46 MDT 2015 patrick.corless PDF-889 fixed indexing issue when mapped colour data is mapped using the data stream length and not the derived size.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.2 [ 10970 ]
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #45076 Fri Jun 19 08:46:54 MDT 2015 patrick.corless PDF-889 fixed indexing issue when mapped colour data is mapped using the data stream length and not the derived size.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Judy Guglielmin made changes -
        Support Case References Support Case 13453:- https://icesoft.my.salesforce.com/5007000001Er0iZ?srPos=0&srKp=500
        Hide
        Patrick Corless added a comment -

        Marking as closed

        Show
        Patrick Corless added a comment - Marking as closed
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: