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

        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
        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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: