Class PDFAnnotation

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

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

  • Constructor Details

    • PDFAnnotation

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

    • setType

      public void setType(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 Map getAnnotationMap()
      Returns the annotation map.