PdfBorderStyle
12 Sep 20251 minute to read
Public Enum to define border style.
// 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 border style as underline
annotation.border.style = PdfBorderStyle.underline;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
beveled- Specifies the type ofbeveled. -
dashed- Specifies the type ofdashed. -
dot- Specifies the type ofdot. -
inset- Specifies the type ofinset. -
solid- Specifies the type ofsolid. -
underline- Specifies the type ofunderline.