Package com.datalogics.PDFL
Class TextMarkupAnnotation
java.lang.Object
com.datalogics.PDFL.Annotation
com.datalogics.PDFL.TextMarkupAnnotation
- Direct Known Subclasses:
HighlightAnnotation,UnderlineAnnotation
Annotations that appears as highlighted content when added to a PDF file. Text markup annotations appear as highlights, underlines, or strikeouts when added to a PDF document in a PDF Viewer. When the edited PDF file is opened the markups appear in a pop-up window containing the text of the associated note.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()getAnnotatedText(boolean splitLines) The text that is marked by the annotation.doubleThe minimum PDF version necessary to support the features used in this annotation.getQuads()A list of quads to mark.voidsetAnnotationFeatureLevel(double featureLevel) Removes features not supported in the supplied version number.voidA list of quads to mark.Methods inherited from class com.datalogics.PDFL.Annotation
equals, generateAppearance, getColor, getContents, getFlags, getInteriorColor, getNormalAppearance, getOpacity, getOptionalContentMembershipDict, getPDFDict, getRect, getSubtype, getTitle, hasRichTextData, isCurrentlyVisible, setColor, setContents, setFlags, setInteriorColor, setNormalAppearance, setOpacity, setOptionalContentMembershipDict, setRect, setTitle, toString
-
Method Details
-
delete
public void delete()- Overrides:
deletein classAnnotation
-
getAnnotationFeatureLevel
public double getAnnotationFeatureLevel()The minimum PDF version necessary to support the features used in this annotation.- Overrides:
getAnnotationFeatureLevelin classAnnotation
-
setAnnotationFeatureLevel
public void setAnnotationFeatureLevel(double featureLevel) Removes features not supported in the supplied version number.- Overrides:
setAnnotationFeatureLevelin classAnnotation
-
getQuads
A list of quads to mark. Each quad encompasses a word or group of contiguous words in the text underlying the annotation. -
setQuads
A list of quads to mark. Each quad encompasses a word or group of contiguous words in the text underlying the annotation. -
getAnnotatedText
The text that is marked by the annotation. Marked text is defined as text which falls within one or more of the quadrilaterals specified by the annotation's QuadPoints entry. If the annotation marks partial words, only those portions of the word that are bounded within the QuadPoints array will be returned. If the annotation marks partial characters, the characters that fall partially within the annotation bounds may not be returned.- Parameters:
splitLines- If true, text corresponding to each quadrilateral will be separated by CRLF characters. If false, text corresponding to each quadrilateral will be separated by spaces.- Returns:
- The text marked by the annotation.
-