PdfCircleMeasurementType
12 Sep 20251 minute to read
Public Enum to define measurement type of circle annotation.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access first page
let page: PdfPage = document.getPage(0);
// Access the annotation at index 0
let annotation: PdfCircleAnnotation = page.annotations.at(0) PdfCircleAnnotation;
// Sets the measurement type of circle annotation as diameter
annotation.measureType = PdfCircleMeasurementType.diameter;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
diameter- Specifies the type ofdiameter. -
radius- Specifies the type ofradius.