id: basic-usage
url: signature/net/basic-usage
title: Basic usage
weight: 1
description: “Quick Start section about main features of GroupDocs.Signature API, describes how to sign documents with just couple lines of code.”
keywords: GroupDocs.Signature Quick Start, GroupDocs.Signature .NET Basic Usage, GroupDocs.Signature Quick Start C#, GroupDocs.Signature Get Started
productName: GroupDocs.Signature for .NET
hideChildren: False
structuredData:
showOrganization: True
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.
The following code shows most used code pattern to defineΒ SignatureΒ object and call its methods.
// Sign document with text signature.using(Signaturesignature=newSignature("sample.docx")){TextSignOptionstextSignOptions=newTextSignOptions("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: