Skip to main content

GetBorderWidth

Gets annotation border width.

Inherited from ApiBaseAnnotation.GetBorderWidth.

Example

Retrieve the border width measurement of an annotation in a PDF.

// How thick is the border around an annotation in a PDF?

// Check the line thickness of an annotation's border in a PDF.

let doc = Api.GetDocument();
let squareAnnot = Api.CreateSquareAnnot([10, 10, 160, 32]);
let page = doc.GetPage(0);
page.AddObject(squareAnnot);
console.log(`Annotation border width is: ${squareAnnot.GetBorderWidth()}`);