ICEpdf
  1. ICEpdf
  2. PDF-229

Images on pdf display very dark

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      Images in the attached PDF file display very dark.
      1. A001.pdf
        1.08 MB
        Arran Mccullough
      2. case9581-A001-logs.txt
        658 kB
        Arran Mccullough

        Activity

        Hide
        Patrick Corless added a comment -

        The PDF in question uses a new Transparency mechanism in PDF that creates a shadow effect between transparency groups. The effect falls under Soft Masks and we currently don't support the effect and thus only a slightly transparent black box is drawn over the images in question. We have quite a few samples now and should probably give the effect a shot.

        Show
        Patrick Corless added a comment - The PDF in question uses a new Transparency mechanism in PDF that creates a shadow effect between transparency groups. The effect falls under Soft Masks and we currently don't support the effect and thus only a slightly transparent black box is drawn over the images in question. We have quite a few samples now and should probably give the effect a shot.
        Hide
        Patrick Corless added a comment -

        Completely wrong on the potential cause of this issue. It turns out that the images in question uses non normal decode parameter. When interpreted correctly it defines the domain in which a colour component lives. When I add some test code to compensate for this the images are displayed correctly. Still needs bit of work but pretty sure I'm on the right track.

        Show
        Patrick Corless added a comment - Completely wrong on the potential cause of this issue. It turns out that the images in question uses non normal decode parameter. When interpreted correctly it defines the domain in which a colour component lives. When I add some test code to compensate for this the images are displayed correctly. Still needs bit of work but pretty sure I'm on the right track.
        Hide
        Patrick Corless added a comment -

        Cleaned update decode processing code for alterRasterYCCK2BGRA(...). I would like to have also added this code for the alterRaster methods but I don't have samples for these cases as of yet. Now that the basic algorithm is setup it should be pretty easy to apply as test cases become available. Marking issue as resolved.

        Show
        Patrick Corless added a comment - Cleaned update decode processing code for alterRasterYCCK2BGRA(...). I would like to have also added this code for the alterRaster methods but I don't have samples for these cases as of yet. Now that the basic algorithm is setup it should be pretty easy to apply as test cases become available. Marking issue as resolved.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: