Class PDAnnotationTextMarkup

All Implemented Interfaces:
COSObjectable

public class PDAnnotationTextMarkup extends PDAnnotationMarkup
This is the abstract class that represents a text markup annotation Introduced in PDF 1.3 specification, except Squiggly lines in 1.4.
Version:
$Revision: 1.1 $
Author:
Paul King
  • Field Details

  • Constructor Details

    • PDAnnotationTextMarkup

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

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

    • setQuadPoints

      public 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.
    • setSubtype

      public void setSubtype(String subType)
      This will set the sub type (and hence appearance, AP taking precedence) For this annotation. See the SUB_TYPE_XXX constants for valid values.
      Parameters:
      subType - The subtype of the annotation
    • getSubtype

      public String getSubtype()
      This will retrieve the sub type (and hence appearance, AP taking precedence) For this annotation.
      Overrides:
      getSubtype in class PDAnnotation
      Returns:
      The subtype of this annotation, see the SUB_TYPE_XXX constants.