ICEpdf
  1. ICEpdf
  2. PDF-926

Images in PDF file are not rendered correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.2, 6.0.0_P01
    • Fix Version/s: 6.0.1
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      In the provided PDF file there are a few images of cards on the second page. These images are rendered almost black when they should be in full colour. I don't see any exceptions thrown in the logs.

        Activity

        Arran Mccullough created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.1 [ 12070 ]
        Hide
        Patrick Corless added a comment -

        Looks like an sMask issue with the images in question. Targeting next release.

        Show
        Patrick Corless added a comment - Looks like an sMask issue with the images in question. Targeting next release.
        Patrick Corless made changes -
        Fix Version/s 6.0.1 [ 12071 ]
        Fix Version/s 6.1 [ 12070 ]
        Hide
        Patrick Corless added a comment -

        Ugh, looks we're actually looking at a transparency group issue.

        Show
        Patrick Corless added a comment - Ugh, looks we're actually looking at a transparency group issue.
        Patrick Corless made changes -
        Fix Version/s 6.1 [ 12070 ]
        Fix Version/s 6.0.1 [ 12071 ]
        Patrick Corless made changes -
        Fix Version/s 6.0.1 [ 12071 ]
        Fix Version/s 6.1 [ 12070 ]
        Hide
        Patrick Corless added a comment -

        Managed to find the rendering issue which is related to the selected blending mode as defined in the PDF transparency section of the specification. The blending modes in question are Multiply and Screen. Our rendering pipeline doesn't have support for this as we have to save each graphic chunk to a buffer to apply the blending mode which is expensive and lowers the quality. We have a few short cuts in our core which can be tweaked.

        Show
        Patrick Corless added a comment - Managed to find the rendering issue which is related to the selected blending mode as defined in the PDF transparency section of the specification. The blending modes in question are Multiply and Screen. Our rendering pipeline doesn't have support for this as we have to save each graphic chunk to a buffer to apply the blending mode which is expensive and lowers the quality. We have a few short cuts in our core which can be tweaked.
        Hide
        Patrick Corless added a comment -

        Pretty sure we have a viable fix for this issue but will need to verify via a full Qa run.

        Show
        Patrick Corless added a comment - Pretty sure we have a viable fix for this issue but will need to verify via a full Qa run.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46229 Tue Nov 17 10:46:39 MST 2015 patrick.corless PDF-926 removed fill for blending modes screen and multiply.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/ExtGState.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/ImageStream.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/Reference.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46245 Thu Nov 19 09:13:45 MST 2015 patrick.corless PDF-926 reworked when we avoid doing fill using multiply and screen blending modes.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/graphics/ExtGState.java
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/util/content/AbstractContentParser.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46247 Thu Nov 19 12:54:29 MST 2015 patrick.corless PDF-926 reworked added opacity back for multiply blending mode.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.0.0_P01/icepdf/core/src/org/icepdf/core/pobjects/graphics/GraphicsState.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: