Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.WatermarkAnnot

Creates a Watermark annotation.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 7.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.WatermarkAnnot"; PDF; PosX; PosY; Width; Height )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
PosX The x position.
PosY The y position.
Width The width of the watermark annotation.
Height The height of the watermark annotation.

Result

Returns annotation index or error.

Description

Creates a Watermark annotation.
Watermark annotations have no interactive elements like other annotation types. This property is useful in many cases because it is usually not possible to select or change the contents of a watermark annotation in viewer applications.
The annotation has no appearance after it was created. Call DynaPDF.CreateAnnotAP to create an appearance template for the annotation. After the appearance template was created you can draw text, images or vector graphics into it. The template must be closed with DynaPDF.EndTemplate when finished. It is also possible to import an external page or EMF contents into the template.
Watermark annotations can be shared on multiple pages. To place the annotation on other pages call DynaPDF.AddAnnotToPage.

If the function succeeds the return value is the annotation handle, a value greater or equal zero.
If the function fails the function returns an error.

See also WatermarkAnnot function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a license.

Created 13th December 2016, last changed 13th December 2016


DynaPDF.Uninitialize - DynaPDF.WebLink