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.

インストール
パッケージは npmjs.com で入手できます。次のコマンドを実行して npm でインストールできます。
npm install groupdocs-merger-cloud

要件
依存関係
SDK には次のパッケージが必要です。
| Package | Constraint |
|---|
| axios | 1.13.2 |
| form-data | * |
| qs | 6.11.2 |
クイックスタート
API 認証情報を取得する
GroupDocs.Merger Cloud を使用するには、GroupDocs.Cloud Dashboard で登録し、Client ID と Client Secret を取得します。
API を初期化する
GroupDocs.Merger Cloud SDK for Node.js の使用を開始するには、次のコードを使用します。
"use strict";
const merger_cloud = require("groupdocs-merger-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new merger_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const documentApi = merger_cloud.DocumentApi.fromConfig(config);
完全な例は RunExamples.js を参照してください。
複数の文書を結合する
初期化したら、この基本例を使って 2 つの Word 文書を 1 つのファイルに結合します。
"use strict";
const merger_cloud = require("groupdocs-merger-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new merger_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const documentApi = merger_cloud.DocumentApi.fromConfig(config);
(async () => {
let item1 = new merger_cloud.JoinItem();
item1.fileInfo = new merger_cloud.FileInfo();
item1.fileInfo.filePath = "WordProcessing/four-pages.docx";
let item2 = new merger_cloud.JoinItem();
item2.fileInfo = new merger_cloud.FileInfo();
item2.fileInfo.filePath = "WordProcessing/one-page.docx";
let options = new merger_cloud.JoinOptions();
options.joinItems = [item1, item2];
options.outputPath = "Output/joined.docx";
let result = await documentApi.join(new merger_cloud.JoinRequest(options));
console.log("Output file path: " + result.path);
})();
完全な例は JoinMultipleDocuments.js を参照してください。
文書を単一ページに分割する
この例は Word 文書から選択したページを分割します。
"use strict";
const merger_cloud = require("groupdocs-merger-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new merger_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const documentApi = merger_cloud.DocumentApi.fromConfig(config);
(async () => {
let options = new merger_cloud.SplitOptions();
options.fileInfo = new merger_cloud.FileInfo();
options.fileInfo.filePath = "WordProcessing/sample-10-pages.docx";
options.outputPath = "Output/split-document";
options.pages = [1, 3];
options.mode = merger_cloud.SplitOptions.ModeEnum.Pages;
let result = await documentApi.split(new merger_cloud.SplitRequest(options));
console.log("Documents count: " + result.documents.length);
})();
完全な例は SplitToSinglePages.js を参照してください。
文書のページを回転する
この例は PDF のページ 2 と 4 を 90 度回転します。
"use strict";
const merger_cloud = require("groupdocs-merger-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new merger_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const pagesApi = merger_cloud.PagesApi.fromConfig(config);
(async () => {
let options = new merger_cloud.RotateOptions();
options.fileInfo = new merger_cloud.FileInfo();
options.fileInfo.filePath = "Pdf/ten-pages.pdf";
options.outputPath = "Output/rotate-pages.pdf";
options.pages = [2, 4];
options.mode = merger_cloud.RotateOptions.ModeEnum.Rotate90;
let result = await pagesApi.rotate(new merger_cloud.RotateRequest(options));
console.log("Output file path: " + result.path);
})();
完全な例は RotatePages.js を参照してください。
対応している結合形式を取得する
API が結合できる文書形式を取得します。
"use strict";
const merger_cloud = require("groupdocs-merger-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new merger_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const infoApi = merger_cloud.InfoApi.fromConfig(config);
(async () => {
let response = await infoApi.getSupportedFileFormats();
console.log("Supported file-formats:");
response.formats.forEach(function (format) {
console.log(format.fileFormat + "(" + format.extension + ")");
});
})();
完全な例は GetSupportedFormats.js を参照してください。
GitHub のサンプル
GroupDocs.Merger Cloud Node.js Examples リポジトリには、次を扱う実行可能なサンプルが含まれています。
| Category | Examples |
|---|
| Document Operations | 文書の結合, 画像の結合, 形式をまたぐ結合, 分割, ページの混合, プレビュー, 添付ファイルのインポート |
| Pages Operations | 向きの変更, 抽出, 移動, 削除, 回転, ページの入れ替え |
| Security Operations | 文書パスワードの追加, 確認, 削除, 更新 |
| Info | 文書情報, ライセンス消費, 対応しているファイルの種類 |
サンプルの実行方法
- サンプルリポジトリ をクローンまたはダウンロードします
Examples/RunExamples.js を編集し、clientId と clientSecret を設定しますExamples ディレクトリに移動しますnpm install を実行しますnpm update を実行しますnpm run-script start を実行します
詳細は Getting Started を参照してください。

Document Merging API | Node.js 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 | Secure API Access | Document Joining | Document Manipulation API | Merge Multiple Formats | Cross-platform API