How to search for Metadata signatures

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);
  • CallΒ SearchΒ method ofΒ Signature class instance and passΒ MetadataSearchOptionsΒ to it.

This code snippet demonstrates how to search for Metadata e-signature in the document.

using (Signature signature = new Signature("sample.pdf"))
{
    MetadataSearchOptions options = new MetadataSearchOptions();
    // search for signatures in document
    List<MetadataSignature> signatures = signature.Search<MetadataSignature>(options);
    foreach (var metadataSignature in signatures)
    {
        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:

Free Online Apps

Along with the full-featured .NET library, we provide simple but powerful free online apps.

To sign PDF, Word, Excel, PowerPoint, and other documents you can use the online apps from the GroupDocs.Signature App Product Family.