SetScale
Sets stamp size scale.
Syntax
expression.SetScale(scale);
expression - A variable that represents a ApiStampAnnotation class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| scale | Required | number | size scale |
Returns
boolean
Example
Set scale for stamp annotation in a PDF document.
// How can I set scale using a stamp annotation in a PDF document?
// Set scale for a stamp annotation in a PDF document.
let doc = Api.GetDocument();
let stampAnnot = Api.CreateStampAnnot([10, 10, 0, 0], 'D_Reviewed', 'Joe Doe');
stampAnnot.SetScale(0.5);
let page = doc.GetPage(0);
page.AddObject(stampAnnot);
console.log(`We set scale: ${stampAnnot.GetType()} for stamp annotation`);