ICEpdf
  1. ICEpdf
  2. PDF-1021

Add selected text values to text markup annotation /content key value.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.1.2
    • Fix Version/s: 6.1.3
    • Component/s: API
    • Labels:
      None
    • Environment:
      PRO and OS

      Description

      Text markup annotations are added on top of PDF content to add effects like highlight, strikeout and underline. The annotation type is generally created using the text selection tool and allows the user to highlight the desired text and the annotation is created on the mouseup event. The /content key of the new annotation currently has as a value the name of the annotation types. To add meta data capture for the annotation type we will instead put the selected text in the /content .

        Activity

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

        I've created a new system property to enable this features, org.icepdf.core.views.page.annotation.highlightContent.enabled which is disabled by default. When disabled the annotation type is entered as the string value of the /contents key. When enabled the selected text is entered as the string value of the /contents key.

        The reason this features is disabled out of the box is to avoid putting in content for clients that have previously not expected a value here. The new value is also picked up by Acrobat as the value of the popup annotation when the markup annotation is double clicked.

        The text selection values can be retrieve by calling annotation.getContents():String on any annotation that is an instance of MarkupAnnotation.

        Show
        Patrick Corless added a comment - I've created a new system property to enable this features, org.icepdf.core.views.page.annotation.highlightContent.enabled which is disabled by default. When disabled the annotation type is entered as the string value of the /contents key. When enabled the selected text is entered as the string value of the /contents key. The reason this features is disabled out of the box is to avoid putting in content for clients that have previously not expected a value here. The new value is also picked up by Acrobat as the value of the popup annotation when the markup annotation is double clicked. The text selection values can be retrieve by calling annotation.getContents():String on any annotation that is an instance of MarkupAnnotation.
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.1.3 [ 13086 ]
        Hide
        Patrick Corless added a comment -

        Marking as fixed/implemented.

        Show
        Patrick Corless added a comment - Marking as fixed/implemented.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49210 Wed Sep 14 11:04:19 MDT 2016 patrick.corless PDF-1021 new sytem proeprty org.icepdf.core.views.page.annotation.highlightContent.enable, when enabled will set the /contents key value to the selected text of the markup annotation, default is false.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/viewer/src/org/icepdf/ri/common/tools/HighLightAnnotationHandler.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49234 Mon Sep 19 16:28:37 MDT 2016 patrick.corless PDF-1021 fixes issue with new contentn property causing page initialization of all document pages.
        Files Changed
        Commit graph MODIFY /icepdf/branches/icepdf-6.1.0/icepdf/viewer/src/org/icepdf/ri/common/tools/HighLightAnnotationHandler.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49497 Tue Nov 08 11:04:39 MST 2016 patrick.corless PDF-1021 new sytem proeprty org.icepdf.core.views.page.annotation.highlightContent.enable, when enabled will set the /contents key value to the selected text of the markup annotation, default is false.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/tools/HighLightAnnotationHandler.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49501 Tue Nov 08 11:08:40 MST 2016 patrick.corless PDF-1021 fixes issue with new contentn property causing page initialization of all document pages.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/tools/HighLightAnnotationHandler.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #49502 Tue Nov 08 11:09:50 MST 2016 patrick.corless PDF-1021 fixes issue with new contentn property causing page initialization of all document pages.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/GlyphText.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/graphics/text/WordText.java
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: