PDFWatermark object
PDFWatermark is one of the PDF Builder objects and is derived from
PDFModel. It sets or gets watermark for a PDF document.
To view the full hierarchy of the PDF Builder objects, find
“pdfobject” in the Browser, right-click the object, and then select “Show
Hierarchy” in the pop-up menu.
Notes when working with PDFWatermark
-
You can only add one watermark, and only add one type of
watermark (image or text) to a PDF document. -
It is unsupported to add watermark to PDF 2.0, PDF/A, PDF/UA,
PDF/X, or PDF/VT documents.
Properties
PDFWatermark provides the following properties. In addition, it
inherits the properties from its parent, PDFModel.
|
PDFWatermark property |
Datatype |
Description |
|---|---|---|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
PDFImage |
Sets or gets an image watermark. |
|
|
Real |
Sets or gets the transparency of the watermark. The |
|
|
Real |
Sets or gets the rotation angle of the |
|
|
Real |
Sets or gets the scale of the watermark. A value of |
|
|
PDFText |
Sets or gets a text watermark. |
Events
|
PDFWatermark event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
Functions
PDFWatermark provides the following functions.
|
PDFWatermark function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control. |