GroupDocs.Signature provides aΒ MetadataSearchOptionsΒ classΒ to search Metadata electronic signatures within document. Here are the steps to search for Metadata signatures using GroupDocs.Signature API:
Create new instance ofΒ SignatureΒ class and pass source document path as a constructor parameter;
Instantiate theΒ MetadataSearchOptionsΒ object according to your requirements and specify additional search options (if needed);
This code snippet demonstrates how to search for Metadata e-signature in the document.
using(Signaturesignature=newSignature("sample.pdf")){MetadataSearchOptionsoptions=newMetadataSearchOptions();// search for signatures in documentList<MetadataSignature>signatures=signature.Search<MetadataSignature>(options);foreach(varmetadataSignatureinsignatures){Console.WriteLine("Metadata signature found. Name : {0}. Value: {1}. Type: {2}",metadataSignature.Name,metadataSignature.Value,metadataSignature.Type);}}
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: