CreateStampAnnot
Creates stamp annotation.
Syntax
expression.CreateStampAnnot(rect, type, author, creationDate);
expression - A variable that represents a Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| rect | Required | Rect | annotation rect (only x1, y1 coordinates will be used, since the stamp dimensions are reserved). | |
| type | Required | StampType | stamp type | |
| author | Optional | string | name of the author | |
| creationDate | Optional | number | creation date (timeStamp) |
Returns
Example
This example creates a stamp annotation and adds it to the page.
- Code
- Result
let doc = Api.GetDocument();
let stampAnnot = Api.CreateStampAnnot([40, 40, 100, 100], 'SB_Approved');
let page = doc.GetPage(0);
page.AddObject(stampAnnot);