eSign Word Processing document with Metadata signatur

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Signature MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-signature -- dnx GroupDocs.Signature.Mcp --yes
Folders, licensing and more →

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:

How to eSign Word Processing document with Metadata signature

This example shows how to sign Word Processing document with Metadata e-signature.

Signature signature = new Signature("sample.docx");
// setup options with text of signature
MetadataSignOptions options = new MetadataSignOptions();

// Create few WordProcessing Metadata signatures
WordProcessingMetadataSignature[] signatures = new WordProcessingMetadataSignature[]
        {
                new WordProcessingMetadataSignature("Author", "Mr.Scherlock Holmes"),
                new WordProcessingMetadataSignature("DateCreated", new Date()),
                new WordProcessingMetadataSignature("DocumentId", 123456),
                new WordProcessingMetadataSignature("SignatureId", 123.456)
        };
options.getSignatures().addRange(signatures);

// sign document to file
signature.sign("SampleSigned.docx", options);

More resources

Advanced Usage Topics

To learn more about document eSign features, please refer to the advanced usage section.

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 Java 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.