PdfTextMarkupAnnotationType
12 Sep 20251 minute to read
Public Enum to define type of text markup 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: PdfTextMarkupAnnotation = page.annotations.at(0) PdfTextMarkupAnnotation;
// Sets the type of the text markup annotation as underline
annotation.textMarkupType = PdfTextMarkupAnnotationType.underline;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
highlight- Specifies the type ofhighlight. -
squiggly- Specifies the type ofsquiggly. -
strikeOut- Specifies the type ofstrikeOut. -
underline- Specifies the type ofunderline.