WebViewer Version: 11.10.0
Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No, I think is not
Is your issue related to annotations? Yes
Please give a brief summary of your issue:
WebViewer: Persisting signatures — events, colors and stroke thickness lost after import
Please describe your issue and provide steps to reproduce it:
Hi! I have several questions related to how signatures work.
I have the following requirement: to store user signatures on the server so that even if a user signs in from another device, they can reuse all of their signatures.
For displaying signatures, I use the standard Signature List. For creating signatures, I also use the standard modal (via instance.UI.openElements(['signatureModal'])).
After creating a signature, I can see it being added to the Signature List — so far, everything works as expected. However, complications start after that.
- In order to detect the appearance of a new signature (not an annotation on the page, but specifically a signature in the Signature List), I currently have to use
setIntervaland repeatedly call code like this:
const signatureTool =
instance.Core.documentViewer.getToolModeMap().AnnotationCreateSignature;
const exported = await signatureTool.exportSignatures();
This leads to the following question: Is there any event that allows detecting when a new signature is added?
- I receive the array of signatures and store it on the server as-is. When the user later loads the application, I fetch the saved data from the server and add everything back to the Signature List using:
const signatureTool =
instance.Core.documentViewer.getToolModeMap().AnnotationCreateSignature;
await signatureTool.importSignatures(signatureList);
The import works, but all signatures end up having the same color — the color of the last created signature.
This leads to the most important question: what is the correct way to save and restore signatures so that they appear in the Signature List with their original colors and stroke thickness preserved?
ChatGPT and Cursor were not able to help with this — they rely on methods that seem to be either made up or outdated, and the limited TypeScript typings of the library only make things more confusing.
Signature List just after creation:
End this is after imported from server:
Please provide a link to a minimal sample where the issue is reproducible: no link

