GetScale
Gets stamp size scale.
Syntax
expression.GetScale();
expression - A variable that represents a ApiStampAnnotation class.
Parameters
This method doesn't have any parameters.
Returns
number
Example
This example gets scale of stamp annotation.
- Code
- Result
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`);