Search results

AnnotationSettings API in Angular PDF Viewer API component

The AnnotationSettings module is used to provide the properties to annotations.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the annotation settings.
 viewer.annotationSettings = {
     author: 'Guest',
     minHeight: 0,
     minWidth: 0,
     maxWidth: 0,
     maxHeight: 0,
     isLock: false,
     skipPrint: false,
     skipDownload: false,
     allowedInteractions: ['None']
 };
 viewer.appendTo("#pdfViewer");

Properties

allowedInteractions

AllowedInteraction[]

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

Defaults to [‘None’]

author

string

specifies the author of the annotation.

customData

object

specifies the custom data of the annotation.

isLock

boolean

specifies the locked action of the annotation.

maxHeight

number

specifies the minHeight of the annotation.

maxWidth

number

specifies the maxWidth of the annotation.

minHeight

number

specifies the minHeight of the annotation.

minWidth

number

specifies the minWidth of the annotation.

skipDownload

boolean

specifies whether the annotations are included or not in download actions.

skipPrint

boolean

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

subject

string

specifies the subject of the annotation.