Class PDFAnnotation

  • All Implemented Interfaces:
    RMPropertyChanger, java.lang.Cloneable
    Direct Known Subclasses:
    PDFAnnotation.Link

    public class PDFAnnotation
    extends RMObject
    This class represents a PDF annotation (like a hyperlink).
    • Constructor Detail

      • PDFAnnotation

        public PDFAnnotation​(RMRect aRect)
        Creates a new annotation for the given rect.
    • Method Detail

      • setType

        public void setType​(java.lang.String s)
        Sets the type of the annotation.
      • setHighlightMode

        public void setHighlightMode​(char h)
        Sets the highlight mode of the annotaiton.
      • setHasBorder

        public void setHasBorder​(boolean b)
        Sets whether the annotation has a border.
      • resolvePageReferences

        public void resolvePageReferences​(PDFPagesTree pages,
                                          PDFXTable xref,
                                          PDFPage thisPage)
        Tells the annotation to resolve page references.
      • getAnnotationMap

        public java.util.Map getAnnotationMap()
        Returns the annotation map.