Class PDFAnnotation

java.lang.Object
com.reportmill.base.RMObject
com.reportmill.pdf.PDFAnnotation
All Implemented Interfaces:
RMArchiver.Archiving, 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.
    • writePDF

      public void writePDF(PDFFile pFile)
      Writes the annotation to the given PDF file.