Search results

CustomStampSettings API in JavaScript PDF Viewer API control

The CustomStampSettings module is used to provide the properties to customstamp annotation.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the custom stamp annotation settings.
 viewer.customStampSettings = {
     opacity: 1,
     author: 'Guest',
     width: 0,
     height: 0,
     left: 0,
     top: 0,
     minHeight: 0,
     minWidth: 0,
     maxWidth: 0,
     maxHeight: 0,
     isLock: false,
     enableCustomStamp: true,
     allowedInteractions: ['None'],
     isPrint: true
 };
 viewer.appendTo("#pdfViewer");

Properties

allowedInteractions

AllowedInteraction[]

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

Defaults to [‘None’]

author

string

specifies the author of the annotation.

customStamps

CustomStampModel[]

Define the custom image path and it’s name to be displayed in the menu items.

enableCustomStamp

boolean

If it is set as false. then the custom stamp items won’t be visible in the annotation toolbar stamp menu items.

height

number

specifies the height of the annotation.

isAddToMenu

boolean

Specifies to maintain the newly added custom stamp element in the menu items.

isLock

boolean

specifies the locked action of the annotation.

isPrint

boolean

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

left

number

specifies the left position 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.

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.

top

number

specifies the top position of the annotation.

width

number

specifies the width of the annotation.