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 of freeTextCallout
.freeTextTypeWriter
- Specifies the intent of freeTextTypeWriter
.none
- Specifies the default intent of none
.