GroupDocs.Signature providesΒ overloaded DeleteΒ method that accepts one SignatureType or list of them.
Please be aware that thisΒ methodΒ modifies the same document that was passed to constructor ofΒ the SignatureΒ class.
Here are the steps to delete signature by specific type from the document with GroupDocs.Signature:
Create new instance ofΒ SignatureΒ class and pass source document path or its stream as a constructor parameter;
This example shows how to delete QR-Code signatures from the document.
using(Signaturesignature=newSignature("signed.pdf")){// deleting QR-Code signatures from the documentDeleteResultresult=signature.Delete(SignatureType.QrCode);if(result.Succeeded.Count>0){Console.WriteLine("Following QR-Code signatures were deleted:");intnumber=1;foreach(QrCodeSignaturetempinresult.Succeeded){Console.WriteLine($"Signature #{number++}: Type: {temp.SignatureType} Id:{temp.SignatureId}, Text: {temp.Text}");}}else{Helper.WriteError("No one QR-Code signature was deleted.");}}
Advanced Usage Topics
To learn more about document eSign features, please refer to theΒ Advanced usage section.
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: