DynaPDF.StampAnnot
------------------

Creates a stamp annotation.

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

MBS( "DynaPDF.StampAnnot"; PDF; SubType; PosX; PosY; Width; Height { ; Author; Subject; Comment } ) 

**MBS**( **"DynaPDF.StampAnnot";** /\* Creates a stamp annotation. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$SubType**; /\* The type of stamp.   
Can be Approved, AsIs, Confidential, Departmental, Draft, Experimental, Expired, Final, ForComment, ForPublicRelease, NotApproved, NotForPublicRelease, Sold, TopSecret or UserDefined.e.g. "Approved" \*/   
**$PosX**; /\* x-coordinatee.g. 100 \*/   
**$PosY**; /\* y-coordinatee.g. 100 \*/   
**$Width**; /\* Stamp widthe.g. 100 \*/   
**$Height**; /\* Stamp heighte.g. 100 \*/   
**$Author**; /\* Optional; The author name. Can be empty.e.g. "Christian Schmitz" \*/   
**$Subject**; /\* Optional; The subject to use. Can be empty. \*/   
**$Comment**) /\* Optional; The comment. Can be empty. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |  |
| SubType | The type of stamp.    Can be Approved, AsIs, Confidential, Departmental, Draft, Experimental, Expired, Final, ForComment, ForPublicRelease, NotApproved, NotForPublicRelease, Sold, TopSecret or UserDefined. | "Approved" |  |
| PosX | x-coordinate | 100 |  |
| PosY | y-coordinate | 100 |  |
| Width | Stamp width | 100 |  |
| Height | Stamp height | 100 |  |
| Author | The author name. Can be empty. | "Christian Schmitz" | Optional |
| Subject | The subject to use. Can be empty. |  | Optional |
| Comment | The comment. Can be empty. |  | Optional |

### Result

Returns annotation handle or error.

### Description

Creates a stamp annotation.   
PDF viewers support a large set of predefined stamp types but it is also possible to create user defined stamps. A user defined stamp can be created as follows:  
- Create the stamp with the SubType UserDefined.
- Call [DynaPDF.CreateAnnotAP](DynaPDFCreateAnnotAP.md) with the handle of the stamp annotation to create a user defined appearance stream.
- Draw arbitrary contents to the appearance stream and close it finally with EndTemplate, finish!

See also [StampAnnot](https://www.monkeybreadsoftware.com/DynaPDF-Manual/StampAnnot.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.CreateAnnotAP](DynaPDFCreateAnnotAP.md)
- [DynaPDF.LineAnnot](DynaPDFLineAnnot.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SquareAnnot](DynaPDFSquareAnnot.md)
- [DynaPDF.TextAnnot](DynaPDFTextAnnot.md)

### Release notes

- **Version 13.3**
    - Changed [DynaPDF.StampAnnot](https://www.mbsplugins.eu/DynaPDFStampAnnot.shtml) to have the last 3 parameters optional.

### Example Databases

- [DynaPDF/Signature Appearance](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Signature%20Appearance.shtml#3ScriptAnchor_)

### 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 13.3pr1](https://www.mbsplugins.de/archive/2023-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 28th November 2014 , last changed 12nd May 2023

  
[DynaPDF.SquareAnnot](DynaPDFSquareAnnot.md) - [DynaPDF.StrokePath](DynaPDFStrokePath.md)

[HTML Version](DynaPDFStampAnnot.shtml)