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

API’yi başlatma

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

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

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

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

var apiInstance = new DocumentApi(config);

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

Belgeleri birleştirme

Bu örnek iki Word belgesini tek bir dosyada birleştirir.

using System.Collections.Generic;
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Merger.Cloud.Sdk.Model.FileInfo;

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

var options = new JoinOptions
{
    JoinItems = new List<JoinItem>
    {
        new JoinItem { FileInfo = new FileInfo { FilePath = "WordProcessing/four-pages.docx" } },
        new JoinItem { FileInfo = new FileInfo { FilePath = "WordProcessing/one-page.docx" } }
    },
    OutputPath = "Output/joined.docx"
};

var response = apiInstance.Join(new JoinRequest(options));
Console.WriteLine("Output file path: " + response.Path);

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

Belgeyi bölme

Bu örnek 3, 6 ve 8. sayfaları ayrı belgelere böler.

using System.Collections.Generic;
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Merger.Cloud.Sdk.Model.FileInfo;

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

var options = new SplitOptions
{
    FileInfo = new FileInfo { FilePath = "WordProcessing/sample-10-pages.docx" },
    OutputPath = "Output/split-document",
    Pages = new List<int?> { 3, 6, 8 },
    Mode = SplitOptions.ModeEnum.Pages
};

var response = apiInstance.Split(new SplitRequest(options));

foreach (var document in response.Documents)
{
    Console.WriteLine("Output file path: " + document.Path);
}

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

Sayfaları döndürme

Bu örnek 2. ve 4. sayfaları 90 derece döndürür.

using System.Collections.Generic;
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Merger.Cloud.Sdk.Model.FileInfo;

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

var options = new RotateOptions
{
    FileInfo = new FileInfo { FilePath = "Pdf/ten-pages.pdf" },
    OutputPath = "Output/rotate-pages.pdf",
    Pages = new List<int?> { 2, 4 },
    Mode = RotateOptions.ModeEnum.Rotate90
};

var response = apiInstance.Rotate(new RotateRequest(options));
Console.WriteLine("Output file path: " + response.Path);

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

Desteklenen dosya türlerini alma

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

using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.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 GetSupportedFileTypes.cs içinde görün.

GitHub’daki örnekler

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

CategoryExamples
BirleştirBirden çok belge, görüntüler, biçimler arası, seçili sayfalar
BölTek sayfalar, sayfa aralıkları
SayfalarDöndürme, taşıma, değiştirme, kaldırma, ayıklama, yönü değiştirme
GüvenlikBelge parolası ekleme, denetleme, güncelleştirme ve kaldırma
InfoBelge bilgileri, desteklenen dosya türleri

Örnekleri çalıştırma

  1. örnek deposu deposunu klonlayın veya indirin
  2. Examples/GroupDocs.Merger.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.Merger.Cloud.Examples.CSharp/RunExamples.cs dosyasını düzenleyin ve Common.ClientId ile Common.ClientSecret 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 Merging API | .NET Cloud API | GroupDocs.Merger Cloud | REST API | Page Manipulation | Document Security | Password Protection | Cloud Storage Integration | File Operations | Folder Operations | Document Splitting | PDF Merging | Cross-format Merging | Word Document Merging | Excel File Merging | Presentation Merging | Document Reorganization | API Explorer | Comprehensive Documentation | Multi-Platform Support | Secure API Access | GitHub Repository | Data Encryption | Client ID and Secret | Scalable Infrastructure | Fast Processing | Document Joining | Content Management | Customizable Document Processing | Document Manipulation API | Real-time API Integration | Merge Multiple Formats | Portable Document Format | OpenDocument Formats | Cross-platform API


 Türkçe