Ü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.Comparison-Cloud

Version NuGet .NET


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.Comparison Cloud kullanmak için GroupDocs.Cloud Panosu üzerinde kaydolun ve Client ID ile Client Secret değerlerini alın.

API’yi başlatma

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

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

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

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

var apiInstance = new CompareApi(config);

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

İki belgeyi karşılaştırma

Bu örnek bir kaynak Word belgesini hedef belgeyle karşılaştırır.

using System.Collections.Generic;
using GroupDocs.Comparison.Cloud.Sdk.Api;
using GroupDocs.Comparison.Cloud.Sdk.Client;
using GroupDocs.Comparison.Cloud.Sdk.Model;
using GroupDocs.Comparison.Cloud.Sdk.Model.Requests;

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

var options = new ComparisonOptions
{
    SourceFile = new FileInfo { FilePath = "source_files/word/source.docx" },
    TargetFiles = new List<FileInfo> { new FileInfo { FilePath = "target_files/word/target.docx" } },
    OutputPath = "output/result.docx"
};

var response = apiInstance.Comparisons(new ComparisonsRequest(options));
Console.WriteLine("Output file link: " + response.Href);

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

Parolayla korunan belgeleri karşılaştırma

Bu örnek parolayla korunan iki Word belgesini karşılaştırır.

using System.Collections.Generic;
using GroupDocs.Comparison.Cloud.Sdk.Api;
using GroupDocs.Comparison.Cloud.Sdk.Client;
using GroupDocs.Comparison.Cloud.Sdk.Model;
using GroupDocs.Comparison.Cloud.Sdk.Model.Requests;

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

var options = new ComparisonOptions
{
    SourceFile = new FileInfo
    {
        FilePath = "source_files/word/source_protected.docx",
        Password = "1231"
    },
    TargetFiles = new List<FileInfo>
    {
        new FileInfo
        {
            FilePath = "target_files/word/target_protected.docx",
            Password = "5784"
        }
    },
    OutputPath = "output/result.docx"
};

var response = apiInstance.Comparisons(new ComparisonsRequest(options));
Console.WriteLine("Output file link: " + response.Href);

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

Değişiklik listesini alma

Bu örnek iki belge arasındaki değişiklikleri döndürür.

using System.Collections.Generic;
using GroupDocs.Comparison.Cloud.Sdk.Api;
using GroupDocs.Comparison.Cloud.Sdk.Client;
using GroupDocs.Comparison.Cloud.Sdk.Model;
using GroupDocs.Comparison.Cloud.Sdk.Model.Requests;

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

var options = new ComparisonOptions
{
    SourceFile = new FileInfo { FilePath = "source_files/word/source.docx" },
    TargetFiles = new List<FileInfo> { new FileInfo { FilePath = "target_files/word/target.docx" } }
};

var changes = apiInstance.PostChanges(new PostChangesRequest(options));
Console.WriteLine("Changes count: " + changes.Count);

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

Desteklenen dosya biçimlerini alma

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

using System.Linq;
using GroupDocs.Comparison.Cloud.Sdk.Api;
using GroupDocs.Comparison.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.Take(2))
{
    Console.WriteLine($"{entry.Extension}: {entry.FileFormat}");
}

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

GitHub’daki örnekler

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

CategoryExamples
Karşılaştırİki belge, parolayla korunan belgeler, birden çok belge, PDF
DeğişikliklerDeğişiklik listesi, değişiklikleri kabul etme veya reddetme, değişiklik koordinatları, düzeltmeler
InfoBelge bilgileri, desteklenen biçimler, önizleme

Örnekleri çalıştırma

  1. örnek deposu deposunu klonlayın veya indirin
  2. Examples/GroupDocs.Comparison.Cloud.Examples.CSharp.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.Comparison.Cloud.Examples.CSharp/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


Etiketler

Document Comparison API | .NET Cloud API | GroupDocs.Comparison Cloud | REST API | Document Comparison | Folder Comparison | Revision Control | Track Changes | Preview Generation | Multi-format Support | Password Protected Documents | Source Code Comparison | Change Tracking | Customization | Document Merging | Change Coordinates | Metadata Extraction | Document Security | File Formats | Document Review | Multi-language Support | Fast Processing | Secure API Access | Data Encryption | Cloud Storage Integration | GitHub Repository


 Türkçe