ICEpdf
  1. ICEpdf
  2. PDF-277

Annotated text in PDF fails to show text on top of the highlighted area

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.2.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      -

      Description

      The document´s title has been partly highlighted in Adobe Acrobat and is rendered correctly in reader 10. However, ICEpdf fails to render the text for the highlighted portion and it´s not clear whether the text is at all rendered.
      1. 9940.pdf
        250 kB
        Tyler Johnson
      1. adobe.jpg
        86 kB
      2. highlight.png
        100 kB
      3. ICEpdf.jpg
        24 kB

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Attachment 9940.pdf [ 12975 ]
        Tyler Johnson made changes -
        Attachment adobe.jpg [ 12976 ]
        Tyler Johnson made changes -
        Attachment ICEpdf.jpg [ 12977 ]
        Tyler Johnson made changes -
        Salesforce Case [5007000000G3a2B]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24183 Thu Mar 17 08:23:46 MDT 2011 patrick.corless PDF-277 added transparency patch so that highlight annotations do not obstruct the underlying text.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/annotations/Annotation.java
        Hide
        Patrick Corless added a comment -

        The text in question is actually there, you can see it with text selection however it is covered up by the yellow highlight annotation. The red strikeout displays with out problem as it is supposed be drawn above the text. There is nothing in the specification on how the annotation should be drawn with regards to text. Normally annotations are drawn above the page content. We could probably do some special handling for highlight annotations which would add some transparency tot he fill. Arguable such an effect would be closer to what would be expect when highlight text with a highlighter?

        Show
        Patrick Corless added a comment - The text in question is actually there, you can see it with text selection however it is covered up by the yellow highlight annotation. The red strikeout displays with out problem as it is supposed be drawn above the text. There is nothing in the specification on how the annotation should be drawn with regards to text. Normally annotations are drawn above the page content. We could probably do some special handling for highlight annotations which would add some transparency tot he fill. Arguable such an effect would be closer to what would be expect when highlight text with a highlighter?
        Patrick Corless made changes -
        Fix Version/s 4.2.1 [ 10265 ]
        Hide
        Patrick Corless added a comment -

        Addition of highlight transparency

        Show
        Patrick Corless added a comment - Addition of highlight transparency
        Patrick Corless made changes -
        Attachment highlight.png [ 12978 ]
        Hide
        Patrick Corless added a comment -

        Added a small tweak to the Annotation class to do some transparency modification to get the highlight annotation to render without obscuring the text behind it.

        Show
        Patrick Corless added a comment - Added a small tweak to the Annotation class to do some transparency modification to get the highlight annotation to render without obscuring the text behind it.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: