ICEpdf
  1. ICEpdf
  2. PDF-711

Color space colour or pattern paint issue

    Details

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

      Description

      This issue came in through support. The PDF displays a fairly complex architecture plan and has server section that are appearing black instead of light grey. The issue is likely related to ColorSpace issue or a pattern paint issue where tiling image is not being correctly decoded.

      Further investigation is needed to isolate the reason for the paint issue.

        Activity

        Hide
        Patrick Corless added a comment -

        This took a while to isolate given the 43,000 draw operations. I got lucky though and the colour issue can be reproduced in the first 713 bytes of content stream. It turns out that Separation colour space uses a tint value which we translate to the transparency for rgba. However in our Graphics state we copy colours using only the rgb values and ignore the alpha and thus black is being drawn.

        Touched up the code and made sure we aren't doing the bad copy anywhere else. Also made a change to Separation colour space where we were changing the named colour value which I don't believe is correct.

        Show
        Patrick Corless added a comment - This took a while to isolate given the 43,000 draw operations. I got lucky though and the colour issue can be reproduced in the first 713 bytes of content stream. It turns out that Separation colour space uses a tint value which we translate to the transparency for rgba. However in our Graphics state we copy colours using only the rgb values and ignore the alpha and thus black is being drawn. Touched up the code and made sure we aren't doing the bad copy anywhere else. Also made a change to Separation colour space where we were changing the named colour value which I don't believe is correct.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.
        Hide
        Patrick Corless added a comment -

        Marking as closed

        Show
        Patrick Corless added a comment - Marking as closed

          People

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

            Dates

            • Created:
              Updated:
              Resolved: