/ PDF / PdfBorderEffectStyle
Search results

PdfBorderEffectStyle API in JavaScript PDF API control

Public Enum to define border effect 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 effect as underline
annotation.borderEffect.style = PdfBorderEffectStyle.cloudy;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
  • cloudy - Specifies the type of cloudy.
  • solid - Specifies the type of solid.