Skip to main content

CreateStampAnnot

Creates stamp annotation.

Syntax

expression.CreateStampAnnot(rect, type, author, creationDate);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
rectRequiredRectannotation rect (only x1, y1 coordinates will be used, since the stamp dimensions are reserved).
typeRequiredStampTypestamp type
authorOptionalstringname of the author
creationDateOptionalnumbercreation date (timeStamp)

Returns

ApiStampAnnotation

Example

Create a stamp annotation and add it to the page.

// How can I create the stamp annot in a PDF document?

// Create the stamp annot in a PDF document.

let doc = Api.GetDocument();
let stampAnnot = Api.CreateStampAnnot([40, 40, 100, 100], 'SB_Approved');
let page = doc.GetPage(0);
page.AddObject(stampAnnot);