DynaPDF.WatermarkAnnot
----------------------

Creates a Watermark annotation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [7.0](newinversion70.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.WatermarkAnnot"; PDF; PosX; PosY; Width; Height ) 

**MBS**( **"DynaPDF.WatermarkAnnot";** /\* Creates a Watermark annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$PosX**; /\* The x position. \*/   
**$PosY**; /\* The y position. \*/   
**$Width**; /\* The width of the watermark annotation. \*/   
**$Height**) /\* The height of the watermark annotation. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $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](DynaPDFCreateAnnotAP.md) 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](DynaPDFEndTemplate.md) 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](DynaPDFAddAnnotToPage.md).  
  
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](https://www.monkeybreadsoftware.com/DynaPDF-Manual/WatermarkAnnot.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.AddAnnotToPage](DynaPDFAddAnnotToPage.md)
- [DynaPDF.CreateAnnotAP](DynaPDFCreateAnnotAP.md)
- [DynaPDF.EndTemplate](DynaPDFEndTemplate.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 7.0**
    - Added [DynaPDF.AddAnnotToPage](http://www.mbsplugins.eu/DynaPDFAddAnnotToPage.shtml) and [DynaPDF.WatermarkAnnot](http://www.mbsplugins.eu/DynaPDFWatermarkAnnot.shtml) functions.

### Blog Entries

- [Unlocking the Power of PDFs in FileMaker with DynaPDF and the MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2024-09-16/Unlocking_the_Power_of_PDFs_in/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.0pr1](https://www.mbsplugins.de/archive/2017-01-02/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[DynaPDF.Uninitialize](DynaPDFUninitialize.md) - [DynaPDF.WebLink](DynaPDFWebLink.md)

[HTML Version](DynaPDFWatermarkAnnot.shtml)