Class: StrikeOutAnnot

PDFNet. StrikeOutAnnot


new StrikeOutAnnot()

A StrikeOut annotation shows as a line segment crossing out a word or a group of contiguous words.

Extends

  • TextMarkupAnnot

Methods


<static> create(doc, pos)

Creates a new StrikeOut 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 StrikeOut annotation.
Type
Promise.<PDFNet.StrikeOutAnnot>

<static> createFromAnnot(ann)

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

<static> createFromObj(d)

creates a StrikeOut 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.StrikeOutAnnot"
Type
Promise.<PDFNet.StrikeOutAnnot>