eSign Word Processing document with Metadata signature
Leave feedback
On this page
Overview
GroupDocs.Signature provides WordProcessingMetadataSignature class to specify different Metadata signature objects for MetadataSignOptions instance to sign Word Processing document files.
Word Processing document metadata is hidden attributes, some of them are visible only over viewing standard document properties like Author, Creation Date, Producer, Entry, Keywords etc. Word Processing document metadata contains pair of Name and Value, Name should be unique within the document. Word Processing document metadata could keep big amount of data that allows provides ability to keep serialized custom objects with additional encryption in there.
Here are the steps to add metadata signatures into Word Processing document with GroupDocs.Signature:
Create new instance of Signature class and pass source document path as a constructor parameter.
How to eSign Word Processing document with Metadata signature
This example shows how to sign Word Processing document with Metadata e-signature.
using(Signaturesignature=newSignature("sample.docx")){MetadataSignOptionsoptions=newMetadataSignOptions();// Create few WordProcessing Metadata signaturesWordProcessingMetadataSignature[]signatures=newWordProcessingMetadataSignature[]{newWordProcessingMetadataSignature("Author","Mr.Scherlock Holmes"),newWordProcessingMetadataSignature("DateCreated",DateTime.Now),newWordProcessingMetadataSignature("DocumentId",123456),newWordProcessingMetadataSignature("SignatureId",123.456M)};options.Signatures.AddRange(signatures);// add these signatures to optionsoptions.Signatures.AddRange(signatures);signature.Sign("SampleSigned.docx",options);}
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: