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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

インストール
パッケージは nuget.org で公開されています。パッケージ マネージャー コンソールで次のコマンドを実行してインストールできます。
NuGet\Install-Package GroupDocs.Merger-Cloud

要件
- .NET Framework 2.0 または .NET Standard 2.0
- NuGet
- .NET Framework 2.0 を対象とする場合の System.Web
- GroupDocs Cloud の資格情報 — ダッシュボードの Client ID and Client Secret
クイック スタート
API 資格情報を取得する
GroupDocs.Merger Cloud を使用するには、GroupDocs.Cloud ダッシュボード で登録し、Client ID と Client Secret を取得します。
API を初期化する
次のコードで GroupDocs.Merger Cloud SDK for .NET の使用を開始します。
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);
完全な例は Common.cs を参照してください。
文書を結合する
この例では、2 つの Word 文書を 1 つのファイルに結合します。
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);
完全な例は JoinMultipleDocuments.cs を参照してください。
文書を分割する
この例では、3、6、8 ページを別々の文書に分割します。
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);
}
完全な例は SplitToSinglePages.cs を参照してください。
ページを回転する
この例では、2 ページと 4 ページを 90 度回転します。
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);
完全な例は RotatePages.cs を参照してください。
サポートされるファイルの種類を取得する
merger API が受け付ける形式を取得します。
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)}");
}
完全な例は GetSupportedFileTypes.cs を参照してください。
GitHub の例
GroupDocs.Merger Cloud .NET Examples リポジトリには、次を扱うすぐに実行できる例があります。
| Category | Examples |
|---|
| 結合 | 複数の文書、画像、形式をまたぐ結合、選択したページ |
| 分割 | 単一ページ、ページ範囲 |
| ページ | 回転、移動、入れ替え、削除、抽出、向きの変更 |
| セキュリティ | 文書パスワードの追加、確認、更新、削除 |
| Info | 文書情報、サポートされるファイルの種類 |
例の実行方法
- 例のリポジトリ をクローンまたはダウンロードします
- Visual Studio 2017 以降で
Examples/GroupDocs.Merger.Cloud.Examples.CSharp.sln を開きます - ソリューションを右クリックし、Enable NuGet Package Restore を選択します
Examples/GroupDocs.Merger.Cloud.Examples.CSharp/RunExamples.cs を編集し、Common.ClientId と Common.ClientSecret を設定します- ビルドして実行します
詳細は Getting Started を参照してください。

タグ
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