How can I help you?
PdfAnnotationLineEndingStyle
6 Feb 20261 minute to read
PdfAnnotationLineEndingStyle class represents the line ending styles of annotations.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Get the first page
let page: PdfPage = document.getPage(0) as PdfPage;
// Get the first annotation of the page
let annotation: PdfLineAnnotation = page.annotations.at(0) as PdfLineAnnotation;
// Initializes a new instance of the `PdfAnnotationLineEndingStyle` class.
annotation.lineEndingStyle = new PdfAnnotationLineEndingStyle({begin: PdfLineEndingStyle.openArrow, end: PdfLineEndingStyle.closeArrow});
// Destroy the document
document.destroy();Properties
Get begin PdfLineEndingStyle
Gets the begin line ending style of the annotation.
Set begin void
Sets the begin line ending style of the annotation.
| Parameter | Type | Description |
|---|---|---|
| value | PdfLineEndingStyle |
Begin line ending style. |
Get end PdfLineEndingStyle
Gets the begin line ending style of the annotation.
Set end void
Sets the begin line ending style of the annotation.
| Parameter | Type | Description |
|---|---|---|
| value | PdfLineEndingStyle |
End line ending style. |