Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Product Docs Swagger Examples Blog Support Dashboard

Installation

The package is available at nuget.org and it can be installed via the Package Manager Console by executing the following command:

NuGet\Install-Package GroupDocs.signature-Cloud

Version NuGet NuGet-GroupDocsCloud


Requirements

  • .NET Framework 2.0 or .NET Standard 2.0
  • NuGet
  • System.Web when targeting .NET Framework 2.0
  • GroupDocs Cloud credentials — Client ID and Client Secret from the Dashboard

Quick Start

Get your API credentials

To use GroupDocs.Signature Cloud, sign up at GroupDocs.Cloud Dashboard and get your Client ID and Client Secret.

Initialize the API

Use the following code to start using the GroupDocs.Signature Cloud SDK for .NET.

using GroupDocs.Signature.Cloud.Sdk.Api;
using GroupDocs.Signature.Cloud.Sdk.Client;

string MyClientId = "YourClientId";
string MyClientSecret = "YourClientSecret";

var config = new Configuration(MyClientId, MyClientSecret);
config.ApiBaseUrl = "https://api.groupdocs.cloud";

var apiInstance = new SignApi(config);

See the full example in Constants.cs.

Sign a document with text

This example places a text signature on the first page of a Word document.

using System.Collections.Generic;
using GroupDocs.Signature.Cloud.Sdk.Api;
using GroupDocs.Signature.Cloud.Sdk.Client;
using GroupDocs.Signature.Cloud.Sdk.Model;
using GroupDocs.Signature.Cloud.Sdk.Model.Requests;
using static GroupDocs.Signature.Cloud.Sdk.Model.OptionsBase;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new SignApi(config);

var options = new SignTextOptions
{
    SignatureType = SignatureTypeEnum.Text,
    Text = "GroupDocs.Signature Cloud",
    Left = 100,
    Top = 100,
    Width = 100,
    Height = 100,
    Page = 1
};

var signSettings = new SignSettings
{
    FileInfo = new FileInfo { FilePath = "one-page.docx" },
    SaveOptions = new SaveOptions { OutputFilePath = "signedText_one-page.docx", SaveFormat = "docx" },
    Options = new List<SignOptions> { options }
};

var response = apiInstance.CreateSignatures(new CreateSignaturesRequest(signSettings));
Console.WriteLine("Expected response type is SignResult: DownloadUrl=" + response.DownloadUrl);

See the full example in TextSignature.cs.

Verify a Text Signature

This example checks that the signed document contains the text signature.

using System.Collections.Generic;
using GroupDocs.Signature.Cloud.Sdk.Api;
using GroupDocs.Signature.Cloud.Sdk.Client;
using GroupDocs.Signature.Cloud.Sdk.Model;
using GroupDocs.Signature.Cloud.Sdk.Model.Requests;
using static GroupDocs.Signature.Cloud.Sdk.Model.OptionsBase;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new SignApi(config);

var options = new VerifyTextOptions
{
    SignatureType = SignatureTypeEnum.Text,
    MatchType = VerifyTextOptions.MatchTypeEnum.Contains,
    Text = "GroupDocs.Signature Cloud",
    Page = 1
};

var verifySettings = new VerifySettings
{
    FileInfo = new FileInfo { FilePath = "signedText_one-page.docx" },
    Options = new List<VerifyOptions> { options }
};

var response = apiInstance.VerifySignatures(new VerifySignaturesRequest(verifySettings));
Console.WriteLine("Expected response type is VerifyResult: IsSuccess = " + (response.IsSuccess != null && response.IsSuccess.Value));

See the full example in VerifyText.cs.

Search for a QR Code Signature

This example searches a document for an Aztec QR code.

using System.Collections.Generic;
using GroupDocs.Signature.Cloud.Sdk.Api;
using GroupDocs.Signature.Cloud.Sdk.Client;
using GroupDocs.Signature.Cloud.Sdk.Model;
using GroupDocs.Signature.Cloud.Sdk.Model.Requests;
using static GroupDocs.Signature.Cloud.Sdk.Model.OptionsBase;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new SignApi(config);

var options = new SearchQRCodeOptions
{
    SignatureType = SignatureTypeEnum.QRCode,
    MatchType = SearchQRCodeOptions.MatchTypeEnum.Contains,
    Text = "GroupDocs.Signature Cloud",
    QRCodeType = "Aztec",
    Page = 1
};

var searchSettings = new SearchSettings
{
    FileInfo = new FileInfo { FilePath = "signedQRCode_one-page.docx" },
    Options = new List<SearchOptions> { options }
};

var response = apiInstance.SearchSignatures(new SearchSignaturesRequest(searchSettings));
Console.WriteLine("Expected response type is SearchResult: IsSuccess = " + response);

See the full example in SearchQRCode.cs.

Get Supported File Formats

Retrieve the formats the signature API accepts.

using GroupDocs.Signature.Cloud.Sdk.Api;
using GroupDocs.Signature.Cloud.Sdk.Client;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new InfoApi(config);

var response = apiInstance.GetSupportedFileFormats();

foreach (var entry in response.Formats)
{
    Console.WriteLine($"{entry.FileFormat}: {string.Join(",", entry.Extension)}");
}

See the full example in GetSupportedFormats.cs.

Examples on GitHub

The GroupDocs.Signature Cloud .NET Examples repository includes ready-to-run examples covering:

CategoryExamples
SignText, image, barcode, QR code, digital, stamp, collection
VerifyText, barcode, QR code, digital, collection
SearchBarcode, QR code, digital, collection
Update and deleteBarcode and QR code signatures
InfoDocument information, preview, supported formats, barcode and QR code types

How to run the examples

  1. Clone or download the examples repository
  2. Open Examples/GroupDocs.Signature.Cloud.Examples.sln in Visual Studio 2017 or later
  3. Right-click the solution and select Enable NuGet Package Restore
  4. Edit Examples/GroupDocs.Signature.Cloud.Examples/RunExamples.cs and set Constants.MyClientId and Constants.MyClientSecret
  5. Build and run

For more details, visit Getting Started.


Product Docs Swagger Examples Blog Support Dashboard



 English