PdfLineCaptionType
12 Sep 20251 minute to read
Public Enum to define line caption type.
// 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: PdfAnnotation = page.annotations.at(0);
// Sets the line caption type as inline
annotation.caption.type = PdfLineCaptionType.inline;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
inline- Specifies the type ofinline. -
top- Specifies the type oftop.