Class FDFAnnotationInk

java.lang.Object
org.apache.pdfbox.pdmodel.fdf.FDFAnnotation
org.apache.pdfbox.pdmodel.fdf.FDFAnnotationInk
All Implemented Interfaces:
COSObjectable

public class FDFAnnotationInk extends FDFAnnotation
This represents a Ink FDF annotation.
  • Field Details

    • LOG

      private static final org.apache.commons.logging.Log LOG
    • SUBTYPE

      public static final String SUBTYPE
      COS Model value for SubType entry.
      See Also:
  • Constructor Details

    • FDFAnnotationInk

      public FDFAnnotationInk()
      Default constructor.
    • FDFAnnotationInk

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

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

    • setInkList

      public final void setInkList(List<float[]> inklist)
      Set the paths making up the freehand "scribble". The ink annotation is made up of one ore more disjoint paths. Each array entry is an array representing a stroked path, being a series of alternating horizontal and vertical coordinates in default user space.
      Parameters:
      inklist - the List of arrays representing the paths.
    • getInkList

      public List<float[]> getInkList()
      Get the paths making up the freehand "scribble".
      Returns:
      the List of arrays representing the paths.
      See Also: