Class: SquigglyAnnot

PDFNet. SquigglyAnnot


new SquigglyAnnot()

A Squiggly annotation shows as a wavy line segment across the bottom of a word or a group of contiguous words.

Extends

  • TextMarkupAnnot

Methods


<static> create(doc, pos)

Creates a new Squiggly annotation in the specified document.
Parameters:
Name Type Description
doc PDFNet.PDFDoc | PDFNet.SDFDoc | PDFNet.FDFDoc A document to which the Popup annotation is added.
pos PDFNet.Rect A rectangle specifying the Popup annotation's bounds in default user space units.
Returns:
A promise that resolves to a newly created blank Squiggly annotation.
Type
Promise.<PDFNet.SquigglyAnnot>

<static> createFromAnnot(ann)

creates a Squiggly annotation and initializes it using given annotation object.
Parameters:
Name Type Description
ann PDFNet.Annot Annot object used to initialize the Squiggly annotation.
Returns:
A promise that resolves to an object of type: "PDFNet.SquigglyAnnot"
Type
Promise.<PDFNet.SquigglyAnnot>

<static> createFromObj(d)

creates a Squiggly annotation and initializes it using given Cos/SDF object.
Parameters:
Name Type Description
d PDFNet.Obj The Cos/SDF object to initialze the annotation with.
Returns:
A promise that resolves to an object of type: "PDFNet.SquigglyAnnot"
Type
Promise.<PDFNet.SquigglyAnnot>