CreateRedactAnnot
Creates redact annotation.
Syntax
expression.CreateRedactAnnot(rect);
expression - A variable that represents a Api class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| rect | Required | Rect | Quad[] | region to apply redact. |
Returns
Example
Create a redact annotation and add it to the page.
// How do I create the redact annot in a PDF document?
// Create the redact annot and display the result in a PDF document.
let doc = Api.GetDocument();
let redactAnnot = Api.CreateRedactAnnot([[85.04985826771654,56.70000000000001,229.27237795275593,56.70000000000001,85.04985826771654,70.9988031496063,229.27237795275593,70.9988031496063]]);
let page = doc.GetPage(0);
page.AddObject(redactAnnot);