PdfAnnotationIntent
12 Sep 20251 minute to read
Public Enum to define annotation intent of free text 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: PdfFreeTextAnnotation = page.annotations.at(0) PdfFreeTextAnnotation;
// Sets the free text annotation intent to freeTextCallout
annotation.annotationIntent = PdfAnnotationIntent.freeTextCallout;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
freeTextCallout- Specifies the intent offreeTextCallout. -
freeTextTypeWriter- Specifies the intent offreeTextTypeWriter. -
none- Specifies the default intent ofnone.