/ PDF / PdfLineCaptionType
Search results

PdfLineCaptionType API in JavaScript (ES5) PDF API control

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 of inline.
  • top - Specifies the type of top.