跳到主要内容

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

This example creates a stamp annotation and adds it to the page.

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