ICEpdf
  1. ICEpdf
  2. PDF-694

Text colour not correctly applied

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.0.5
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any
    • Salesforce Case Reference:

      Description

      The PDF in question contains a small black box and should have white text painted over it. The pages white text is being set with "1 scn" but when "0 scn" is set the text is still drawing using black.

      My guess is that we have a could space issue or becuase "0 scn" is being set outside of the text block it isn't being applied to the text state fill.

        Activity

        Hide
        Patrick Corless added a comment -

        I think I have a solution for this colour issue. In this particular case the color value of 0 is correctly decoded in the Seperation colour space to white in RGB. However the tint value is zero which we apply as an alpha value to the colour. The problem with this is that we get 100% transparent result and no white. The default colour model for PDF shouln't have transparency as transparency is specified using other mechanisms.

        So long story shot I've put in a corner case to paint white if white is used with 100% alpha. There could be problems after a QA run but I'm hopeful the fix will pass.

        Show
        Patrick Corless added a comment - I think I have a solution for this colour issue. In this particular case the color value of 0 is correctly decoded in the Seperation colour space to white in RGB. However the tint value is zero which we apply as an alpha value to the colour. The problem with this is that we get 100% transparent result and no white. The default colour model for PDF shouln't have transparency as transparency is specified using other mechanisms. So long story shot I've put in a corner case to paint white if white is used with 100% alpha. There could be problems after a QA run but I'm hopeful the fix will pass.
        Hide
        Patrick Corless added a comment -

        Marking as resolved, checked in fix on 5.0.1 branch and trunk. Will open again if QA shows any issues.

        Show
        Patrick Corless added a comment - Marking as resolved, checked in fix on 5.0.1 branch and trunk. Will open again if QA shows any issues.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: