The StrikethroughSettings
module is used to provide the properties to Strikethrough annotation.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
let viewer: PdfViewer = new PdfViewer();
// Change the strike through annotation settings.
viewer.strikethroughSettings = {
opacity: 1,
color: '#ff0000',
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 strikethrough annotations. IsLock can be configured using strikethrough settings.
Defaults to [‘None’]
AnnotationSelectorSettingsModel
specifies the annotation selector settings of the annotation.
string
specifies the author of the annotation.
IAnnotationPoint[]
Get or set bounds of the annotation.
Defaults to []
string
specifies the color of the annotation.
object
specifies the custom data of the annotation.
boolean
Enables or disables the multi-page text markup annotation selection in UI.
Defaults to false
boolean
Enable or disable the text markup resizer to modify the bounds in UI.
Defaults to false
boolean
specifies the locked action of the annotation.
boolean
specifies whether the individual annotations are included or not in print actions.
number
specifies the opacity of the annotation.
number
Get or set page number of the annotation.
string
specifies the subject of the annotation.