Contact Support
SignatureSelect and SignatureUnselect event
13 Jul 20241 minute to read
The Syncfusion PDF Viewer provides event-handling capabilities for various actions, including selecting and unselecting handwritten signatures. The signatureSelect and signatureUnselect events enable developers to programmatically manage the selection state of signatures within the PDF Viewer component.
signatureSelect
The signatureSelect event triggers when a handwritten signature annotation is selected. This event allows developers to capture the signature selection and handle it programmatically, such as updating the UI or storing the selection data for further processing.
signatureUnselect
The signatureUnselect event triggers when a handwritten signature annotation is unselected. This event enables developers to manage the unselection programmatically, which can be useful for tasks like cleanup operations or updating the application’s state to reflect that a signature is no longer selected.
The code snippet demonstrates how to subscribe to the signatureSelect and signatureUnselect events in the Syncfusion PDF Viewer component.
pdfviewer.signatureSelect = (args: any) => {
console.log('Signature selected:', args);
};
pdfviewer.signatureUnselect = (args: any) => {
console.log('Signature selected:', args);
};
The signatureSelect
and signatureUnselect
events in Syncfusion PDF Viewer offer robust options for managing the state of handwritten signatures within your application. By handling these events, developers can create a more interactive and dynamic user experience, responding programmatically to signature selection and unselection.