CreateFreeTextAnnot
Creates freeText annotation.
Syntax
expression.CreateFreeTextAnnot(rect);
expression - A variable that represents a Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| rect | Required | Rect | annotation rect. |
Returns
Example
This example creates a freeText annotation and adds it to the page.
- Code
- Result
let doc = Api.GetDocument();
let freeTextAnnot = Api.CreateFreeTextAnnot([10, 10, 160, 32]);
let page = doc.GetPage(0);
page.AddObject(freeTextAnnot);