ICEpdf
  1. ICEpdf
  2. PDF-972

PDF contains malformed external graphic state alpha

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.1.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Any

      Description

      The PDF in question contains a external graphic state dictionary with he following value <</ca 100>>. The problem here is that a /ca value should be defined in range of 0->1.0. We have code that takes the 100 value and divides by 255 which is a common process for colour values.

      When the division happens we get a 0.39 transparency and the rendering of the graphics looks light. I think its safe to say the division/conversion code should be used for /ca and /CA values.

      This looks like an issue with the iPaper.Net encoder but I think we can fix this without to many regressions.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #48525 Thu Mar 17 15:55:18 MDT 2016 patrick.corless PDF-972 added fix for malformed external graphics state alpha value.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #48524 Thu Mar 17 15:54:36 MDT 2016 patrick.corless PDF-972 added fix for malformed external graphics state alpha value.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java

          People

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

            Dates

            • Created:
              Updated:
              Resolved: