Class FDFAnnotationTextMarkup

java.lang.Object
org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
org.apache.pdfbox.pdmodel.fdf.FDFAnnotationTextMarkup
All Implemented Interfaces:
COSObjectable
Direct Known Subclasses:
FDFAnnotationHighlight, FDFAnnotationSquiggly, FDFAnnotationStrikeOut, FDFAnnotationUnderline

public abstract class FDFAnnotationTextMarkup extends FDFAnnotation
This abstract class is used as a superclass for the different FDF annotations with text markup attributes.
Author:
Johanneke Lamberink
  • Constructor Details

    • FDFAnnotationTextMarkup

      public FDFAnnotationTextMarkup()
      Default constructor.
    • FDFAnnotationTextMarkup

      public FDFAnnotationTextMarkup(COSDictionary a)
      Constructor.
      Parameters:
      a - An existing FDF Annotation.
    • FDFAnnotationTextMarkup

      public FDFAnnotationTextMarkup(Element element) throws IOException
      Constructor.
      Parameters:
      element - An XFDF element.
      Throws:
      IOException - If there is an error extracting information from the element.
  • Method Details

    • setCoords

      public void setCoords(float[] coords)
      Set the coordinates of individual words or group of words. The quadliterals shall encompasses a word or group of contiguous words in the text underlying the annotation. The coordinates for each quadrilateral shall be given in the order x1 y1 x2 y2 x3 y3 x4 y4.
      Parameters:
      coords - an array of 8 ? n numbers specifying the coordinates of n quadrilaterals.
    • getCoords

      public float[] getCoords()
      Get the coordinates of individual words or group of words.
      Returns:
      the array of 8 ? n numbers specifying the coordinates of n quadrilaterals.
      See Also: