Basic usage

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 library provides ability to manipulate with different electronic signature types such as text, image, digital, barcode, QR-code, stamp, form field, metadata. These e-signatures could be added to document, updated, deleted, verified or searched inside already signed documents. Our product also provides information about document type and structure - file type, size, pages count, etc. and generates document pages preview based on provided options.

Here are main GroupDocs Signature API concepts:

  • Signature is the main class that contains all required methods for manipulating with document e-signatures.
  • Most part of methods expects different options to eSign document, verify and search electronic signatures inside document.
  • Signature class implements IDisposable interface to correctly release used resources - like safely closing document streams when all operations completed.

Referencing required namespaces

The following code shows how to include required namespace for all code examples.

using GroupDocs.Signature;
using GroupDocs.Signature.Domain;
using GroupDocs.Signature.Options;
using GroupDocs.Signature.Domain.Extensions;

Signature object definition

The following code shows most used code pattern to define Signature object and call its methods.

// Sign document with text signature.
using (Signature signature = new Signature("sample.docx"))
{
   TextSignOptions textSignOptions = new TextSignOptions("John Smith");
   signature.Sign("SampleSigned.docx", textSignOptions);
}

Please check detailed examples of how to eSign documents, search and verify document signatures in the following guides: