Ürünlerimize göz atın

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

Kurulum

Paket nuget.org adresinde kullanılabilir ve Paket Yöneticisi Konsolu üzerinden şu komutla yüklenebilir:

NuGet\Install-Package GroupDocs.signature-Cloud

Version NuGet NuGet-GroupDocsCloud


Gereksinimler

  • .NET Framework 2.0 veya .NET Standard 2.0
  • NuGet
  • .NET Framework 2.0 hedeflenirken System.Web
  • GroupDocs Cloud kimlik bilgileri — panodaki Client ID and Client Secret

Hızlı başlangıç

API kimlik bilgilerinizi alın

GroupDocs.Signature Cloud kullanmak için GroupDocs.Cloud Panosu üzerinde kaydolun ve Client ID ile Client Secret değerlerini alın.

API’yi başlatma

GroupDocs.Signature Cloud SDK for .NET kullanmaya başlamak için aşağıdaki kodu kullanın.

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);

Tam örneği Constants.cs içinde görün.

Belgeyi metinle imzalama

Bu örnek bir Word belgesinin ilk sayfasına metin imzası yerleştirir.

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);

Tam örneği TextSignature.cs içinde görün.

Metin imzasını doğrulama

Bu örnek imzalanan belgenin metin imzasını içerdiğini denetler.

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));

Tam örneği VerifyText.cs içinde görün.

QR kodu imzası arama

Bu örnek bir belgede Aztec QR kodu arar.

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);

Tam örneği SearchQRCode.cs içinde görün.

Desteklenen dosya biçimlerini alma

signature API’sinin kabul ettiği biçimleri alın.

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)}");
}

Tam örneği GetSupportedFormats.cs içinde görün.

GitHub’daki örnekler

GroupDocs.Signature Cloud .NET Examples deposu, şunları kapsayan çalışmaya hazır örnekler içerir:

CategoryExamples
İmzalaMetin, görüntü, barkod, QR kodu, dijital, damga, koleksiyon
DoğrulaMetin, barkod, QR kodu, dijital, koleksiyon
AraBarkod, QR kodu, dijital, koleksiyon
Güncelleştir ve silBarkod ve QR kodu imzaları
InfoBelge bilgileri, önizleme, desteklenen biçimler, barkod ve QR kodu türleri

Örnekleri çalıştırma

  1. örnek deposu deposunu klonlayın veya indirin
  2. Examples/GroupDocs.Signature.Cloud.Examples.sln dosyasını Visual Studio 2017 veya sonraki bir sürümde açın
  3. Çözüme sağ tıklayın ve Enable NuGet Package Restore öğesini seçin
  4. Examples/GroupDocs.Signature.Cloud.Examples/RunExamples.cs dosyasını düzenleyin ve Constants.MyClientId ile Constants.MyClientSecret değerlerini ayarlayın
  5. Derleyin ve çalıştırın

Daha fazla ayrıntı için Getting Started sayfasını ziyaret edin.


Product Docs Swagger Examples Blog Support Dashboard



 Türkçe