Which product are you using?
PDF.js Express Plus
PDF.js Express Version
8.1.0
Detailed description of issue
I have a use-case where I need to know when a signature has been placed in a PDF (using a signature field, with the blue “Sign here” button). I thought this here was what I was looking for:
https://pdfjs.express/api/Core.Tools.SignatureCreateTool.html#event:signatureSaved
But I can’t get any of those 4 events to trigger when I test inserting a signature.
Code snippet
Here is what I tried:
sigTool = new Tools.SignatureCreateTool(instance.docViewer);
sigTool.addEventListener("signatureSaved", (annotation) => {
debugger
console.log(annotation);
});
sigTool.addEventListener("locationSelected", (annotation) => {
debugger
console.log(annotation);
});
sigTool.addEventListener("annotationAdded", (annotation) => {
debugger
console.log(annotation);
});
None of those are triggering. I get no JavaScript errors, so I’m pretty sure I’m using SignatureCreateTool correctly here, but the events never trigger.
What am I missing?
Thanks,
Lucas