Class PdfAnnotation


public class PdfAnnotation extends PdfDictionary
A PdfAnnotation is a note that is associated with a page.
See Also:
  • Field Details

    • HIGHLIGHT_INVERT

      public static final PdfName HIGHLIGHT_INVERT
      highlight attributename
    • writer

      protected PdfWriter writer
    • reference

      protected PdfIndirectReference reference
      Reference to this annotation.
      Since:
      2.1.6; was removed in 2.1.5, but restored in 2.1.6
  • Constructor Details

  • Method Details

    • createLink

      protected static PdfAnnotation createLink(PdfWriter writer, Rectangle rect, PdfName highlight)
      Creates a link.
      Parameters:
      writer - PdfWriter
      rect - dimensions Rectangle
      highlight - the highlight property
      Returns:
      A PdfAnnotation
    • createLink

      public static PdfAnnotation createLink(PdfWriter writer, Rectangle rect, PdfName highlight, PdfAction action)
      Creates an Annotation with an Action.
      Parameters:
      writer - PdfWriter
      rect - dimensions Rectangle
      highlight - title for the link
      action - action for annotation
      Returns:
      A PdfAnnotation
    • createLink

      public static PdfAnnotation createLink(PdfWriter writer, Rectangle rect, PdfName highlight, String namedDestination)
      Creates an Annotation with an local destination.
      Parameters:
      writer - PdfWriter
      rect - dimensions Rectangle
      highlight - title for the link
      namedDestination - destination for pdf annotation
      Returns:
      A PdfAnnotation
    • getIndirectReference

      public PdfIndirectReference getIndirectReference()
      Returns an indirect reference to the annotation
      Returns:
      the indirect reference