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

        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.
        Hide
        Patrick Corless added a comment -

        Marking as fixed/implemented.

        Show
        Patrick Corless added a comment - Marking as fixed/implemented.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: