PdfPolyLineAnnotation
class represents the polyline annotation objects.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Get the first page
let page: PdfPage = document.getPage(0) as PdfPage;
// Create a new poly line annotation with bounds
const annotation: PdfPolyLineAnnotation = new PdfPolyLineAnnotation ([100, 300, 150, 200, 300, 200, 350, 300, 300, 400, 150, 400]);
// Add annotation to the page
page.annotations.add(annotation);
// Destroy the document
document.destroy();
string
Gets the author of the annotation.
PdfLineEndingStyle
Gets the begin line ending style of the annotation.
PdfAnnotationBorder
Gets the border of the annotation.
Object
Gets the bounds of the annotation.
PdfAnnotationCaption
Gets the caption of the annotation.
number[]
Gets the fore color of the annotation.
PdfPopupAnnotationCollection
Gets the comments of the PDF annotation (Read only).
Date
Gets the creation date of the annotation.
PdfLineEndingStyle
Gets the end line ending style of the annotation.
PdfAnnotationFlag
Gets the flags of the annotation.
boolean
Gets the boolean flag indicating whether the annotation have been flattened or not.
boolean
Gets the boolean flag indicating whether annotation’s popup have been flattened or not.
number[]
Gets the inner color of the annotation.
PdfLayer
Gets the PdfLayer
of the annotation.
number
Gets the line extension of the square annotation.
Date
Gets the modification date of the annotation.
string
Gets the name of the annotation.
number
Gets the opacity of the annotation.
PdfPopupAnnotationCollection
Gets the review history of the PDF annotation (Read only).
number
Gets the rotation angle of the annotation (Read only).
PdfRotationAngle
Gets the rotation of the annotation.
string
Gets the subject of the annotation.
string
Gets the text of the annotation.
Gets the values associated with the specified key.
Parameter | Type | Description |
---|---|---|
name | string |
Key. |
Returns string[]
Set the boolean flag to create a new appearance stream for annotations.
Parameter | Type | Description |
---|---|---|
value | boolean |
Set appearance. |
Returns void
Sets the values associated with the specified key.
Parameter | Type | Description |
---|---|---|
name | string |
Key. |
value | string |
Value associated with the key.. |
Returns void