WebViewer Version: 8.9
Do you have an issue with a specific file(s)?
Annotations
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, but I am using react-typescript
Is your issue related to annotations?
Yes
Please give a brief summary of your issue:
(Think of this as an email subject)
Filling a text field and saving it invalidates the existing digital-signature.
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
We are implementing a multi client signature feature using PDFTron that has form filling (text, date, etc.) with digital-signature. Filling and signing of clients are done in order (synchronously). This means that each client (in order) will have to fill some details and digitally sign the document. Using the code snippet below we can successfully do this with the first client.
// fill annotations in viewer, then...
const xfdfString = await annotationManager.exportAnnotations();
const data = await doc.getFileData({ xfdfString });
await documentViewer.loadDocument(data);
// digitally-sign
const doc = await documentViewer.getDocument().getPDFDoc();
const buf = await doc.saveMemoryBuffer(PDFNet.SDFDoc.SaveOptions.e_incremental);
// save buffer to file
However, the succeeding clients will invalidate the previous digital-signature.
In the signature property it is mentioned that “The signer has specified that Form Fill-in, Signing and Commenting are allowed for this document.”
We think that “doc.getFileData({ xfdfString })” part invalidates the digital-signature since it modifies the PDF.
So the question is, how can we update/fill annotation and be able to save a document with the existing digital-signature still valid?