Search results

AnnotationSelectorSettings API in JavaScript PDF Viewer API control

The AnnotationSelectorSettings module is used to provide the properties to annotation selectors.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the annotation selector settings.
 viewer.annotationSelectorSettings = {
     selectionBorderColor: '',
     resizerBorderColor: 'Circle',
     resizerFillColor: '#4070FF',
     resizerSize: 8,
     selectionBorderThickness: 1,
     resizerShape: 'Square',
     selectorLineDashArray: [],
     resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
     resizerCursorType: null
 };
 viewer.appendTo("#pdfViewer");

Properties

resizerCursorType

CursorType

specifies the cursor type of resizer

resizerLocation

AnnotationResizerLocation

Specifies the location of the resizer.

resizerShape

AnnotationResizerShape

Specifies the shape of the resizer.

selectionBorderColor

string

Specifies the selection border color.

selectionBorderThickness

number

Specifies the thickness of the border of selection.

selectorLineDashArray

number[]

Specifies the border dash array of the selection.