Class PDFNet.WatermarkAnnot
PDFNet.WatermarkAnnot
Constructor Attributes | Constructor Name and Description |
---|---|
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.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
PDFNet.WatermarkAnnot.create(doc, pos)
Creates a new Watermark annotation in the specified document.
|
<static> |
PDFNet.WatermarkAnnot.createFromAnnot(ann)
creates a Watermark annotation and initializes it using given annotation object.
|
<static> |
PDFNet.WatermarkAnnot.createFromObj(d)
creates a Watermark annotation and initializes it using given Cos/SDF object.
|
Class Detail
PDFNet.WatermarkAnnot(id)
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.
- Parameters:
- id
Method Detail
<static>
{WatermarkAnnot}
PDFNet.WatermarkAnnot.create(doc, pos)
Creates a new Watermark annotation in the specified document.
- Parameters:
- {SDFDoc} doc
- A document to which the annotation is added.
- {rect} pos
- A rectangle specifying the annotation's bounds in default user space units.
- Returns:
- {WatermarkAnnot} A promise that resolves to a newly created blank Watermark annotation.
<static>
{WatermarkAnnot}
PDFNet.WatermarkAnnot.createFromAnnot(ann)
creates a Watermark annotation and initializes it using given annotation object.
- Parameters:
- {Annot} ann
- Annot object used to initialize the Watermark annotation.
- Returns:
- {WatermarkAnnot} A promise that resolves to an object of type: "WatermarkAnnot" (generated documentation)
<static>
{WatermarkAnnot}
PDFNet.WatermarkAnnot.createFromObj(d)
creates a Watermark annotation and initializes it using given Cos/SDF object.
- Parameters:
- {Obj} d
- The Cos/SDF object to initialze the annotation with.
- Returns:
- {WatermarkAnnot} A promise that resolves to an object of type: "WatermarkAnnot" (generated documentation)