The LineSettings
module is used to provide the properties to line annotation.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
let viewer: PdfViewer = new PdfViewer();
// Change the line annotation settings.
viewer.lineSettings = {
opacity: 1,
color: '#9c2592',
author: 'Guest',
annotationSelectorSettings: {
selectionBorderColor: '',
resizerBorderColor: 'black',
resizerFillColor: '#FF4081',
resizerSize: 8,
selectionBorderThickness: 1,
resizerShape: 'Square',
selectorLineDashArray: [],
resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges
},
isLock: false,
enableMultiPageAnnotation: false,
enableTextMarkupResizer: false,
allowedInteractions: ['None'],
isPrint: true
};
viewer.appendTo("#pdfViewer");
Gets or sets the allowed interactions for the locked highlight annotations. IsLock can be configured using line settings.
Defaults to [‘None’]
AnnotationSelectorSettingsModel
specifies the annotation selector settings of the annotation.
string
specifies the author of the annotation.
number
specifies the border dash array of the annotation.
object
specifies the custom data of the annotation.
string
specifies the fill color of the annotation.
boolean
specifies the locked action of the annotation.
boolean
specifies whether the individual annotations are included or not in print actions.
specifies the line head end style of the annotation.
specifies the line head start style of the annotation.
number
specifies the minHeight of the annotation.
number
specifies the maxWidth of the annotation.
number
specifies the minHeight of the annotation.
number
specifies the minWidth of the annotation.
IPoint
Get or set offset of the annotation.
number
specifies the opacity of the annotation.
number
Get or set page number of the annotation.
string
specifies the stroke color of the annotation.
number
specified the thickness of the annotation.
PointModel[]
Get or set vertex points of the annotation.
Defaults to []