How to search for Digital signatures

GroupDocs.Signature offers an ability to find Digital signatures that are applied to document and returns its digital signature certificate.
Please follow these steps to search for Digital signatures within the document:

This example shows how to search for Digital signature in the document and analyze digital signature certificate.

            using (Signature signature = new Signature("spreadsheet.xlsx"))
                // search for signatures in document
                List<DigitalSignature> signatures = signature.Search<DigitalSignature>(SignatureType.Digital);

                Console.WriteLine("\nSource document contains following signatures.");
                foreach (var digitalSignature in signatures)
                    Console.WriteLine("Digital signature found from {0} with validation flag {1}. Certificate SN {2}",
                    digitalSignature.SignTime, digitalSignature.IsValid, digitalSignature.Certificate?.SerialNumber);

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:

Free Online App

Along with full-featured .NET library we provide simple, but powerful free Apps.

You are welcome to eSign PDF, Word, Excel, PowerPoint documents with free to use online GroupDocs Signature App.

© Aspose Pty Ltd 2001-2022. All Rights Reserved.