public interface Annotation extends DocumentLocation
All PDF annotations define a range of base attributes, which are accessible using the functions this interface specifies. It should be noted that none of the attributes that are potentially available through the functions defined in this interface are required to be present for any particular annotation type.
Different types of annotations also carry specialized attributes; PDFxStream currently supports richer access to these annotation types:
TextAnnotation
FreeTextAnnotation
LinkAnnotation
.FileAttachmentAnnotation
Annotation types not listed above (which are primarily graphical in nature)
are represented by PDFxStream using a basic Annotation
implementation that allows access
to those annotations' textual attributes.
Modifier and Type | Method and Description |
---|---|
String |
getContents()
Returns the text content of this annotation.
|
String |
getModificationDate()
Returns the date, in PDF date format, when this annotation was last modified.
|
String |
getName()
Returns the optional name for this annotation, which should uniquely identify it within a page.
|
String |
getTypeCd()
Returns a String indicating what type of annotation this this.
|
pageNumber
String getContents()
String getName()
String getModificationDate()
PDFDateParser
class.
This function may return null if no modification date is present in the annotation data.String getTypeCd()