Search results

StampSettings API in JavaScript PDF Viewer API control

The stampSettings module is used to provide the properties to stamp annotation.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the stamp annotation settings.
 viewer.stampSettings = {
     opacity: 1,
     author: 'Guest',
     annotationSelectorSettings: {
         selectionBorderColor: '',
         resizerBorderColor: 'red',
         resizerFillColor: '#FF4081',
         resizerSize: 8,
         selectionBorderThickness: 5,
         resizerShape: 'Circle',
         selectorLineDashArray: [],
         resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
         resizerCursorType: null
     },
     minHeight: 0,
     minWidth: 0,
     maxWidth: 0,
     maxHeight: 0,
     isLock: false,
     dynamicStamps: [
         DynamicStampItem.Revised,
         DynamicStampItem.Reviewed,
         DynamicStampItem.Received,
         DynamicStampItem.Confidential,
         DynamicStampItem.Approved,
         DynamicStampItem.NotApproved
     ],
     signStamps: [
         SignStampItem.Witness,
         SignStampItem.InitialHere,
         SignStampItem.SignHere,
         SignStampItem.Accepted,
         SignStampItem.Rejected
     ],
     standardBusinessStamps: [
         StandardBusinessStampItem.Approved,
         StandardBusinessStampItem.NotApproved,
         StandardBusinessStampItem.Draft,
         StandardBusinessStampItem.Final,
         StandardBusinessStampItem.Completed,
         StandardBusinessStampItem.Confidential,
         StandardBusinessStampItem.ForPublicRelease,
         StandardBusinessStampItem.NotForPublicRelease,
         StandardBusinessStampItem.ForComment,
         StandardBusinessStampItem.Void,
         StandardBusinessStampItem.PreliminaryResults,
         StandardBusinessStampItem.InformationOnly
     ],
     allowedInteractions: ['None'],
     isPrint: true
 };
 viewer.appendTo("#pdfViewer");

Properties

allowedInteractions

AllowedInteraction[]

Gets or sets the allowed interactions for the locked stamp annotations. IsLock can be configured using stamp 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.

dynamicStamps

DynamicStampItem[]

Provide option to define the required dynamic stamp items to be displayed in annotation toolbar menu.

height

number

specifies the height of the annotation.

isLock

boolean

specifies the locked action of the annotation.

isPrint

boolean

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

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.

signStamps

SignStampItem[]

Provide option to define the required sign stamp items to be displayed in annotation toolbar menu.

standardBusinessStamps

StandardBusinessStampItem[]

Provide option to define the required standard business stamp items to be displayed in annotation toolbar menu.

subject

string

specifies the subject of the annotation.

width

number

specifies the width of the annotation.