Search results

StickyNotesSettings API in Vue PDF Viewer API component

The stickyNotesSettings module is used to provide the properties to sticky notes annotation.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the sticky notes annotation settings.
 viewer.stickyNotesSettings = {
     author: 'Guest',
     opacity: 1,
     annotationSelectorSettings: {
         selectionBorderColor: '',
         resizerBorderColor: 'red',
         resizerFillColor: '#4070FF',
         resizerSize: 8,
         selectionBorderThickness: 1,
         resizerShape: 'Circle',
         selectorLineDashArray: [],
         resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
         resizerCursorType: null
     },
     isLock: false,
     allowedInteractions: ['None'],
     isPrint: true
 };
 viewer.appendTo("#pdfViewer");

Properties

allowedInteractions

AllowedInteraction[]

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

Defaults to [‘None’]

annotationSelectorSettings

AnnotationSelectorSettingsModel

specifies the annotation selector settings of the annotation.

author

string

specifies the author of the annotation.

customData

object

specifies the custom data of the annotation.

isLock

boolean

specifies the lock action of the annotation.

isPrint

boolean

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

offset

IPoint

Get or set offset of the annotation.

opacity

number

specifies the opacity of the annotation.

pageNumber

number

Get or set page number of the annotation.

subject

string

specifies the subject of the annotation.