Class PDAnnotationTextMarkup

All Implemented Interfaces:
COSObjectable
Direct Known Subclasses:
PDAnnotationHighlight, PDAnnotationSquiggly, PDAnnotationStrikeout, PDAnnotationUnderline

public class PDAnnotationTextMarkup extends PDAnnotationMarkup
This is the abstract class that represents a text markup annotation introduced in the PDF 1.3 specification, except Squiggly lines in 1.4.
  • Constructor Details

    • PDAnnotationTextMarkup

      protected PDAnnotationTextMarkup(String subType)
      Creates a TextMarkup annotation of the specified sub type.
      Parameters:
      subType - the subtype the annotation represents
    • PDAnnotationTextMarkup

      protected PDAnnotationTextMarkup(COSDictionary field)
      Creates a TextMarkup annotation from a COSDictionary, expected to be a correct object definition.
      Parameters:
      field - the PDF object to represent as a field.
  • Method Details

    • setQuadPoints

      public final void setQuadPoints(float[] quadPoints)
      This will set the set of quadpoints which encompass the areas of this annotation.
      Parameters:
      quadPoints - an array representing the set of area covered
    • getQuadPoints

      public float[] getQuadPoints()
      This will retrieve the set of quadpoints which encompass the areas of this annotation.
      Returns:
      An array of floats representing the quad points.