ICEpdf
  1. ICEpdf
  2. PDF-209

graphics state smask value not supported.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 5.0.7
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any
    • Assignee Priority:
      P2

      Description

      This PDF came in though support. There are several graphics and gradients that shown using an incorrect colour model. This issue has to be looked at a little more closely but it appears that the likely culprit is a colour model failure due to the currently unsupported function 4 type.

      - Creating a function 4 interpreter should be to bad as there are lots of open source implementation available.
      - Correct colour issue.
      1. ficha--3--para impresion.pdf
        2.33 MB
        Patrick Corless
      2. Top 5 Internal Communication Practices.pdf
        1.62 MB
        Leon Carvalho

        Issue Links

          Activity

          Patrick Corless made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #42114 Thu Aug 14 12:52:31 MDT 2014 patrick.corless PDF-209 changed the default of org.icepdf.core.disableXObjectSMask from true to false.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/commands/FormDrawCmd.java
          Patrick Corless made changes -
          Fix Version/s 5.0.7 [ 11470 ]
          Fix Version/s 5.1 [ 10675 ]
          Patrick Corless made changes -
          Fix Version/s 5.0.7 [ 11470 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #40933 Mon May 05 15:49:50 MDT 2014 patrick.corless PDF-209 fixed regression in transparency group enable/disable.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/commands/FormDrawCmd.java
          Patrick Corless made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.0.7 [ 11470 ]
          Resolution Fixed [ 1 ]
          Hide
          Patrick Corless added a comment -

          Addition of partial support for form (xobject) smask support. To enable this feature org.icepdf.core.disableXObjectSMask=false system property must be set.

          Show
          Patrick Corless added a comment - Addition of partial support for form (xobject) smask support. To enable this feature org.icepdf.core.disableXObjectSMask=false system property must be set.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #40929 Mon May 05 13:55:32 MDT 2014 patrick.corless PDF-209 check in of image based smask solution for xobjects by setting org.icepdf.core.disableXObjectSMask=false
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/commands/FormDrawCmd.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/Resources.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
          Hide
          Patrick Corless added a comment -

          I've flushed out most of what is needed to apply a basic image smask. There as still a some issue around a pattern based smask. So as a result I've dissabled this features by default until I can work out the pattern issue as well as few corner cases.

          The new system property is org.icepdf.core.disableXObjectSMask and defaults to true out of the box.

          Show
          Patrick Corless added a comment - I've flushed out most of what is needed to apply a basic image smask. There as still a some issue around a pattern based smask. So as a result I've dissabled this features by default until I can work out the pattern issue as well as few corner cases. The new system property is org.icepdf.core.disableXObjectSMask and defaults to true out of the box.
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #40901 Wed Apr 30 13:29:32 MDT 2014 patrick.corless PDF-209 added basic support for smask values on xObjects.
          Files Changed
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/Form.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/commands/FillDrawCmd.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/graphics/commands/FormDrawCmd.java
          Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
          Leon Carvalho made changes -
          Hide
          Leon Carvalho added a comment -

          I believe this file may be affected by the same issue. Hopefully, this will be useful, please disregard if not relevant.

          Show
          Leon Carvalho added a comment - I believe this file may be affected by the same issue. Hopefully, this will be useful, please disregard if not relevant.
          Patrick Corless made changes -
          Link This issue is duplicated by PDF-416 [ PDF-416 ]
          Patrick Corless made changes -
          Link This issue is duplicated by PDF-370 [ PDF-370 ]
          Patrick Corless made changes -
          Link This issue blocks PDF-416 [ PDF-416 ]
          Patrick Corless made changes -
          Fix Version/s 5.1 [ 10675 ]
          Fix Version/s 5.0 [ 10314 ]
          Hide
          Patrick Corless added a comment -

          The type 4 example has been update/fixed some time ago but this PDF sill has an unimplemented feature with respect to graphics states smask reference. Moving to 5.1 with the intent we add support.

          Show
          Patrick Corless added a comment - The type 4 example has been update/fixed some time ago but this PDF sill has an unimplemented feature with respect to graphics states smask reference. Moving to 5.1 with the intent we add support.
          Patrick Corless made changes -
          Summary Function 4 colour space issue and blending. graphics state smask value not supported.
          Patrick Corless made changes -
          Fix Version/s 5.0 [ 10314 ]
          Hide
          Patrick Corless added a comment -

          Quite a few improvement have been make in the rendering quality of the PDF in question. Still more work is needed to fix the transparency group issues. And the gradient background on the second page is not quite right colour wise.

          Show
          Patrick Corless added a comment - Quite a few improvement have been make in the rendering quality of the PDF in question. Still more work is needed to fix the transparency group issues. And the gradient background on the second page is not quite right colour wise.
          Patrick Corless made changes -
          Fix Version/s 4.2 [ 10243 ]
          Hide
          Patrick Corless added a comment -

          I've implemented a type 4 function handling but the PDF in question still has some problems. The blue gradient is showing up correctly now that the type 4 function is being used however there appears to be other cmyk colour and masking issue with the file in question.

          Show
          Patrick Corless added a comment - I've implemented a type 4 function handling but the PDF in question still has some problems. The blue gradient is showing up correctly now that the type 4 function is being used however there appears to be other cmyk colour and masking issue with the file in question.
          Patrick Corless made changes -
          Link This issue blocks PDF-213 [ PDF-213 ]
          Patrick Corless made changes -
          Link This issue blocks PDF-224 [ PDF-224 ]
          Patrick Corless made changes -
          Link This issue blocks PDF-193 [ PDF-193 ]
          Patrick Corless made changes -
          Summary Function 4 colour space issue. Function 4 colour space issue and blending.
          Assignee Priority P2
          Hide
          Patrick Corless added a comment -

          This pdf also has numerous examples of blending between transparency groups which would be a nice to have

          Show
          Patrick Corless added a comment - This pdf also has numerous examples of blending between transparency groups which would be a nice to have
          Patrick Corless made changes -
          Fix Version/s 4.2 [ 10243 ]
          Hide
          Patrick Corless added a comment -

          Scheduling for 4.2, hopefully taking a closer look at the alternative colour space or implementing type 4 functions will do the trick.

          Show
          Patrick Corless added a comment - Scheduling for 4.2, hopefully taking a closer look at the alternative colour space or implementing type 4 functions will do the trick.
          Patrick Corless made changes -
          Attachment ficha--3--para impresion.pdf [ 12554 ]
          Hide
          Patrick Corless added a comment -

          test case.

          Show
          Patrick Corless added a comment - test case.
          Arran Mccullough made changes -
          Field Original Value New Value
          Salesforce Case [5007000000D6jph]
          Patrick Corless created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved: