The HandWrittenSignatureSettings
module is used to provide the properties to handwritten signature.
<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
let viewer: PdfViewer = new PdfViewer();
// Change the hand written signature settings.
viewer.handWrittenSignatureSettings = {
signatureItem: [
'Signature',
'Initial'
],
saveSignatureLimit: 1,
saveInitialLimit: 1,
opacity: 1,
strokeColor: '#000000',
width: 150,
height: 100,
thickness: 1,
annotationSelectorSettings: {
selectionBorderColor: '',
resizerBorderColor: 'black',
resizerFillColor: '#FF4081',
resizerSize: 8,
selectionBorderThickness: 1,
resizerShape: 'Circle',
selectorLineDashArray: [],
resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
resizerCursorType: null
},
allowedInteractions: ['None'],
signatureDialogSettings: {
displayMode: DisplayMode.Draw | DisplayMode.Text | DisplayMode.Upload, hideSaveSignature: false
},
initialDialogSettings: {
displayMode: DisplayMode.Draw | DisplayMode.Text | DisplayMode.Upload,
hideSaveSignature: false
}
};
viewer.appendTo("#pdfViewer");
AnnotationSelectorSettingsModel
specifies the annotation selector settings of the annotation.
number
specified the height of the annotation.
Get or set the initialDialogSettings for Handwritten initial.
number
specifies the opacity of the annotation.
number
Gets or sets the save initial limit of the initial. By default value is 1 and maximum limit is 5.
number
Gets or sets the save signature limit of the signature. By default value is 1 and maximum limit is 5.
Get or set the Signature DialogSettings for Handwritten signature.
string[]
Provide option to define the required signature items to be displayed in signature menu.
string
specifies the stroke color of the annotation.
number
specified the thickness of the annotation.
Object
Options to set the type signature font name with respective index and maximum font name limit is 4 so key value should be 0 to 3.
number
specified the width of the annotation.