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:
TextAnnotationFreeTextAnnotationLinkAnnotation.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 | 
|---|---|
Page | 
getAppearance()
Returns a  
Page containing this annotation's rendered "appearance
 stream", if it explicitly defines one, null otherwise. | 
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. 
 | 
pageNumberString getContents()
String getName()
String getModificationDate()
PDFDateParser class.
 
 This function may return null if no modification date is present in the annotation data.String getTypeCd()
Page getAppearance()
Page containing this annotation's rendered "appearance
 stream", if it explicitly defines one, null otherwise. (If an annotation does not define its own appearance
 explicitly,
 it is assumed that a PDF reader / consumer will provide a default rendering based on the annotation's type and associated data.) The contents of the page can be accessed and manipulated just like
 any "regular" page obtained from e.g. Document.getPage(int).