To help you explore the library quickly, GroupDocs.Signature offers a Free Trial and a 30-day Temporary License for evaluation, along with various purchase plans.
Note
General policies and practices for evaluating, licensing, and purchasing our products are described in the Purchase Policies and FAQ section.
Free Trial or Temporary License
You can try GroupDocs.Signature without purchasing a license.
Free Trial
The evaluation version is the same package as the licensed one: it becomes fully licensed when you apply a license, as described below. Without a license, the following limitations apply:
Operation
Limitation
Every operation
Documents with more than two pages are not processed. Signing, searching, verifying, generating previews, or getting document information throws GroupDocsSignatureException with the message “The number of pages cannot exceed 2 in a trial version”.
Sign
An evaluation line (“Created with evaluation version of GroupDocs.Signature”) is added to every page of the signed document.
Search
Found signatures report masked values. A text signature’s text is replaced by the evaluation notice. A barcode or QR code value comes back with its last characters replaced by *, followed by an evaluation notice.
Verify
Text, barcode, and QR code verification compares against the masked values, so IsValid is false even for a document that carries the expected signature.
Temporary License
To test GroupDocs.Signature without these limitations, request a 30-day Temporary License. For more information, see the Get a Temporary License page.
The license file contains details such as the product name, the number of developers it is licensed to, and the subscription expiry date. It also contains a digital signature, so do not change the file: even an extra line break makes the license invalid.
Once you have a license, apply it in one of the ways below. A license should be set:
only once per application, and
before you use any other GroupDocs.Signature class.
Tip
The license can be set more than once per application, but set it only once: each SetLicense call takes processing time. In a console or desktop application, set it in the startup code. In an ASP.NET Core application, set it in Program.cs before the application starts. In an ASP.NET (.NET Framework) application, set it in Application_Start in Global.asax, not in Page_Load.
Set License from a File
The following code sets a license from a file. The easiest way is to put the license file in the same folder as GroupDocs.Signature.dll and give the file name without a path:
usingGroupDocs.Signature;// The license file next to GroupDocs.Signature.dll; change the name to match yoursstringlicensePath="GroupDocs.Signature.lic";// Apply the license once, before using any other GroupDocs.Signature APILicenselicense=newLicense();license.SetLicense(licensePath);
Tip
To check that the license works, sign a test document and make sure that no evaluation line appears on its pages.
Set License from a Stream
SetLicense also accepts a readable stream, such as an open file or a MemoryStream holding the license bytes:
A Metered License is an alternative to a license file. It is a usage-based licensing model that may suit customers who prefer to be billed for actual API usage. For more information, refer to the Metered Licensing FAQ.
To use it:
Create an instance of the Metered class.
Pass your public and private keys to the SetMeteredKey method.
Process your documents.
Call Metered.GetConsumptionQuantity() to get the amount of data processed so far, in megabytes.
Call Metered.GetConsumptionCredit() to get the number of credits consumed so far.
usingSystem;usingGroupDocs.Signature;stringpublicKey="*****";// Your public keystringprivateKey="*****";// Your private key// Activate metered (pay-as-you-go) billing for this processMeteredmetered=newMetered();metered.SetMeteredKey(publicKey,privateKey);// ... process your documents here ...Console.WriteLine("MB processed: "+Metered.GetConsumptionQuantity());Console.WriteLine("Credits used: "+Metered.GetConsumptionCredit());
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Ask AI
Ask anything about this page — the answer is based on its content.
Searching the docs and writing an answer…
Something went wrong while getting an answer. Please try again in a moment.