Please give a brief summary of your issue:
After Removing Existing Digital Signature, Field is Listed as Unsigned Signature Field.
Please describe your issue and provide steps to reproduce it:
Digitally sign pdf document;
Clear signature on step 1 by C# code:
using var fieldIterator = pdfToSign.GetDigitalSignatureFieldIterator();
if (fieldIterator.HasNext()) {
firstPage.AnnotRemove(0);
using var field = fieldIterator.Current();
field.ClearSignature();
}
Sign with other signature:
var digitalSignatureField = pdfToSign.CreateDigitalSignatureField(integrityMessage);
var signatureWidget = SignatureWidget.Create(pdfToSign, new Rect(0, 0, 0, 0), digitalSignatureField);
signatureWidget.SetFlag(Annot.Flag.e_no_view, true);
firstPage.AnnotInsert(IntegritySignaturePosition, signatureWidget);
digitalSignatureField.SetDocumentPermissions(DigitalSignatureField.DocumentPermissions.e_no_changes_allowed);
digitalSignatureField.SignOnNextSave(systemOptions.KeyFilePath, systemOptions.KeyFilePassword);
To investigate further could you please provide the following information.
Input file(s)
Generated output file(s)
Complete code and settings used to generate (2) from (1)
Screenshots showing the output, and clearly indicating what you expected to get instead, and also clearly indicating the application/browser being used to view.
Thank you for you link, we have already tried that link.
We want to achieve integrity after user signature. Multiple users may sign. Signatures maybe just wet signature, not digital signatures.
We want to guarantee that file not changed after download, that is why we put our own digital signature.
But we don not want to put own digital signature after every user wet signature. So we remove our old digital signature and sign again.
Typically, the best way to make sure that the document has not been tampered with is to add an approval signature each time the document has been signed, so that it is guaranteed that only authorized people re modifying the document. Note that to do this, all fields must be present before any signature is added.
Could you please confirm if this is what you are looking to do?
Yes, that is our goal. But we wanted put approval signature for document after each e-signature (wet signature). So we wanted remove old digital (approval) signature and sign again after each wet signature. This was needed for: 1) Document was given by our system, 2) Document has not altered since.
We have solved problem, just by redoing wet-signatures from beginning and putting one approval digital signature.