Details
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
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 6.1.3 [ 13086 ] |
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 | |
Files Changed | ||||
![]() |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #49234 | Mon Sep 19 16:28:37 MDT 2016 | patrick.corless | |
Files Changed | ||||
![]() |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #49497 | Tue Nov 08 11:04:39 MST 2016 | patrick.corless | |
Files Changed | ||||
![]() |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #49501 | Tue Nov 08 11:08:40 MST 2016 | patrick.corless | |
Files Changed | ||||
![]() |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #49502 | Tue Nov 08 11:09:50 MST 2016 | patrick.corless | |
Files Changed | ||||
![]() ![]() |
Status | Resolved [ 5 ] | Closed [ 6 ] |
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.