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");
Gets or sets the allowed interactions for the locked custom stamp annotations. IsLock can be configured using custom stamp settings.
Defaults to [‘None’]
string
specifies the author of the annotation.
Define the custom image path and it’s name to be displayed in the menu items.
boolean
If it is set as false. then the custom stamp items won’t be visible in the annotation toolbar stamp menu items.
number
specifies the height of the annotation.
boolean
Specifies to maintain the newly added custom stamp element in the menu items.
boolean
specifies the locked action of the annotation.
boolean
specifies whether the individual annotations are included or not in print actions.
number
specifies the left position of the annotation.
number
specifies the minHeight of the annotation.
number
specifies the maxWidth of the annotation.
number
specifies the minHeight of the annotation.
number
specifies the minWidth of the annotation.
IPoint
Get or set offset of the annotation.
number
specifies the opacity of the annotation.
number
Get or set page number of the annotation.
number
specifies the top position of the annotation.
number
specifies the width of the annotation.