Class: WatermarkAnnot

PDFNet. WatermarkAnnot


new WatermarkAnnot()

A Watermark annotation is an annotation that is printed at a fixed size and position on a page, regardless of the dimensions of the printed page.

Extends

  • Annot

Methods


<static> create(doc, pos)

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

<static> createFromAnnot(ann)

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

<static> createFromObj( [d])

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