ICEpdf
  1. ICEpdf
  2. PDF-763

Transparent text box is rendered over text in PDF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6_P01
    • Fix Version/s: 5.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      All

      Description

      In the provided PDF file, there is a block that is overlaid over some text in the rendered PDF. This block is related to an empty textbox.

        Activity

        Arran Mccullough created issue -
        Hide
        Patrick Corless added a comment -

        The image in question is using an array based image mask also know as Colour Key Masking. It turns out we have no support for this in our rendering core which likely means this is very rarely used part of the spec. In this case /Mask [0 0 ] which would make the white image fully transparent. This will be relatively straight forward to implement.

        Show
        Patrick Corless added a comment - The image in question is using an array based image mask also know as Colour Key Masking. It turns out we have no support for this in our rendering core which likely means this is very rarely used part of the spec. In this case /Mask [0 0 ] which would make the white image fully transparent. This will be relatively straight forward to implement.
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 5.0.7 [ 11470 ]
        Patrick Corless made changes -
        Fix Version/s 5.1 [ 10675 ]
        Fix Version/s 5.0.7 [ 11470 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #42134 Thu Aug 21 08:43:08 MDT 2014 patrick.corless PDF-763 added check for an argb image when applying colour key masking, if not we copy the image to a ne image with argb image.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-5.0.1/icepdf/core/src/org/icepdf/core/pobjects/ImageUtility.java
        Hide
        Patrick Corless added a comment -

        Traced out the logic for colour key masking and it appeared like everything was in order. The only short cumming as was the buffer didn't actually have an alpha channel.

        Added a check for alpha and if not present will copy the the image mask data to 4 component types. This allows the alpha to be painted correctly.

        Show
        Patrick Corless added a comment - Traced out the logic for colour key masking and it appeared like everything was in order. The only short cumming as was the buffer didn't actually have an alpha channel. Added a check for alpha and if not present will copy the the image mask data to 4 component types. This allows the alpha to be painted correctly.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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: