PdfLineEndingStyle
12 Sep 20251 minute to read
Public Enum to define line ending 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: PdfPolyLineAnnotation = page.annotations.at(0) as PdfPolyLineAnnotation;
// Sets the begin line end style as openArrow
annotation.beginLineStyle = PdfLineEndingStyle.openArrow;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
butt- Specifies the type ofbutt. -
circle- Specifies the type ofcircle. -
closedArrow- Specifies the type ofclosedArrow. -
diamond- Specifies the type ofdiamond. -
none- Specifies the type ofnone. -
openArrow- Specifies the type ofopenArrow. -
rClosedArrow- Specifies the type ofrClosedArrow. -
rOpenArrow- Specifies the type ofrOpenArrow. -
slash- Specifies the type ofslash. -
square- Specifies the type ofsquare.