StrikethroughSettings

9 Jul 20262 minutes to read

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 = {
     pageNumber: 1,
     bounds: [],
     opacity: 1,
     color: '#ff0000',
     author: 'Guest',
     annotationSelectorSettings: {
         selectionBorderColor: '',
         resizerBorderColor: 'black',
         resizerFillColor: '#FF4081',
         resizerSize: 8,
         selectionBorderThickness: 1,
         resizerShape: 'Square',
         selectorLineDashArray: [],
         resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges
     },
     customData: null,
     isLock: false,
     enableMultiPageAnnotation: false,
     enableTextMarkupResizer: false,
     allowedInteractions: ['None'],
     isPrint: true,
     subject: ''
 };
 viewer.appendTo("#pdfViewer");

Properties

allowedInteractions AllowedInteraction[]

Gets or sets the allowed interactions for the locked strikethrough annotations.
IsLock can be configured using strikethrough settings.

Defaults to [‘None’]

annotationSelectorSettings AnnotationSelectorSettingsModel

specifies the annotation selector settings of the annotation.

Defaults to ’’

author string

specifies the author of the annotation.

Defaults to ‘Guest’

bounds IAnnotationPoint[]

Get or set bounds of the annotation.

Defaults to []

color string

specifies the color of the annotation.

Defaults to ‘#ff0000’

customData object

specifies the custom data of the annotation.

Defaults to null

enableMultiPageAnnotation boolean

Enables or disables the multi-page text markup annotation selection in UI.

Defaults to false

enableTextMarkupResizer boolean

Enable or disable the text markup resizer to modify the bounds in UI.

Defaults to false

isLock boolean

specifies the locked action of the annotation.

Defaults to false

isPrint boolean

specifies whether the individual annotations are included or not in print actions.

Defaults to true

opacity number

specifies the opacity of the annotation.

Defaults to 1

pageNumber number

Get or set page number of the annotation.

Defaults to 1

subject string

specifies the subject of the annotation.

Defaults to ’’