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​

Add an approval stamp annotation to a PDF page.

// How do I mark a document with a stamp in a PDF?

// Place a preset stamp at specified coordinates in a PDF.

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