Which product are you using?
PDF.js Express Plus
PDF.js Express Version
UI version: 8.7.0
Core version: 8.7.5
Detailed description of issue
I want to preserve the custom rubber stamps that a user can create using the tool. I have created similar functionality for signatures but I don’t see events corresponding to signatureSaved and signatureDeleted in the documentation
Expected behaviour
I expected an event that I could add a listener to when the user creates a rubber stamp using the tool.
Does your issue happen with every document, or just one?
Every document
Link to document
N/A
Code snippet
const signatureTool = instance.Core.documentViewer.getTool('AnnotationCreateSignature');
signatureTool.addEventListener('signatureSaved', function(annotation){
// Code for saving signatures
});
signatureTool.addEventListener('signatureDeleted', function(annotation){
// Code for saving signatures
});
const stampTool = instance.Core.documentViewer.getTool('RubberStampCreateTool');
stampTool.addEventListener('rubberStampSaved', function(annotation){
console.log('rubberStampSaved event');
});
stampTool.addEventListener('rubberStampDeleted', function(annotation){
console.log('rubberStampDeleted event');
});