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.

Instalasi
Paket tersedia di npmjs.com dan dapat diinstal melalui npm dengan menjalankan perintah berikut:
npm install groupdocs-comparison-cloud

Persyaratan
Dependensi
SDK memerlukan paket berikut:
| Package | Constraint |
|---|
| axios | ^1.16.1 |
| form-data | * |
| jsonwebtoken | 9.0.1 |
| qs | 6.15.2 |
Mulai cepat
Dapatkan kredensial API Anda
Untuk menggunakan GroupDocs.Comparison Cloud, daftar di GroupDocs.Cloud Dashboard dan dapatkan Client ID dan Client Secret Anda.
Inisialisasi API
Gunakan kode berikut untuk mulai menggunakan GroupDocs.Comparison Cloud SDK for Node.js.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const compareApi = comparison_cloud.CompareApi.fromConfig(config);
Lihat contoh lengkap di RunExamples.js.
Bandingkan dua dokumen
Setelah diinisialisasi, gunakan contoh dasar ini untuk membandingkan dua dokumen Word dan menyimpan hasilnya.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const compareApi = comparison_cloud.CompareApi.fromConfig(config);
(async () => {
let source = new comparison_cloud.FileInfo();
source.filePath = "source_files/word/source.docx";
let target = new comparison_cloud.FileInfo();
target.filePath = "target_files/word/target.docx";
let options = new comparison_cloud.ComparisonOptions();
options.sourceFile = source;
options.targetFiles = [target];
options.outputPath = "output/result.docx";
let request = new comparison_cloud.ComparisonsRequest(options);
let response = await compareApi.comparisons(request);
console.log("Output file link: " + response.href);
})();
Lihat contoh lengkap di CompareDocuments.js.
Dapatkan daftar perubahan
Contoh ini mengembalikan perubahan di antara dua dokumen Word.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const compareApi = comparison_cloud.CompareApi.fromConfig(config);
(async () => {
let source = new comparison_cloud.FileInfo();
source.filePath = "source_files/word/source.docx";
let target = new comparison_cloud.FileInfo();
target.filePath = "target_files/word/target.docx";
let options = new comparison_cloud.ComparisonOptions();
options.sourceFile = source;
options.targetFiles = [target];
options.outputPath = "output/result.docx";
let request = new comparison_cloud.PostChangesRequest(options);
let changes = await compareApi.postChanges(request);
console.log("Changes count: " + changes.length);
})();
Lihat contoh lengkap di GetListOfChanges.js.
Contoh ini mengembalikan jumlah halaman dokumen sumber.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const infoApi = comparison_cloud.InfoApi.fromConfig(config);
(async () => {
let fileInfo = new comparison_cloud.FileInfo();
fileInfo.filePath = "source_files/word/source.docx";
let request = new comparison_cloud.GetDocumentInfoRequest(fileInfo);
let response = await infoApi.getDocumentInfo(request);
console.log("GetDocumentInformation completed: " + response.pageCount);
})();
Lihat contoh lengkap di GetDocumentInformation.js.
Ambil format dokumen yang dapat dibandingkan oleh API.
"use strict";
const comparison_cloud = require("groupdocs-comparison-cloud");
const clientId = "YourClientId";
const clientSecret = "YourClientSecret";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
const infoApi = comparison_cloud.InfoApi.fromConfig(config);
(async () => {
let response = await infoApi.getSupportedFileFormats();
console.log("Formats count: " + response.formats.length);
})();
Lihat contoh lengkap di GetSupportedFormats.js.
Contoh di GitHub
Repositori GroupDocs.Comparison Cloud Node.js Examples berisi contoh siap dijalankan yang mencakup:
| Category | Examples |
|---|
| Basic Usage | Bandingkan dokumen, bandingkan dokumen PDF, informasi dokumen, format yang didukung, pratinjau, konsumsi lisensi |
| Advanced Usage | Beberapa dokumen, dokumen terlindungi, sensitivitas, gaya perubahan, daftar perubahan, revisi, opsi penyimpanan |
Cara menjalankan contoh
- Klon atau unduh repositori contoh
- Edit
Examples/RunExamples.js dan atur clientId serta clientSecret - Buka direktori
Examples - Jalankan
npm install - Jalankan
npm update - Jalankan
npm run-script start
Untuk detail selengkapnya, kunjungi Getting Started.

Document Comparison API | Node.js 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 | Document Review | Secure API Access | Cloud Storage Integration | Cross-platform API