Compare Documents via Node.js Cloud SDK

Build corporate document comparison tools using REST API. Works as a comprehensive solution for all major file formats.‎‎

  • GroupDocs.Comparison Cloud SDK for cURL
  • GroupDocs.Comparison Cloud SDK for .NET
  • GroupDocs.Comparison Cloud SDK for Java
  • GroupDocs.Comparison Cloud SDK for PHP
  • GroupDocs.Comparison Cloud SDK for Python
  • GroupDocs.Comparison Cloud SDK for Ruby
Start Free Trial

GroupDocs.Comparison for Cloud is a REST API that enables your Node.js applications to fetch two ‎documents of supported file format, compare those ‎same format documents and find differences ‎between them. The SDK allows you to make a resultant file and enables you to ‎accept or reject the ‎retrieved changes. Our Document Comparison SDK allows easy integration ‎into your existing Node.js ‎applications, to empower your end-users to compare documents, spreadsheets, ‎presentations, ‎Microsoft Visio diagrams, emails, and files of many other formats.‎‎‎‎‎

Advanced Document Comparison REST API Features

Compare Documents Stored at Cloud Storage

Fetch Documents of Supported File Types as File or Array of images

Retrieve Resultant Document that Contains Differences among Compared Documents‎

Get List of Categories, such as, TypeChanged or OnlyNumbers etc., for the Modified Content

Accept/Reject Document Modifications to Save or Discard them

Return Document Modifications as a Set of Images or their Stream

Get Resultant Document (with Modifications) via Stream

Fetch Document (with Comparison Result) as a Set of Images or their Stream

Retrieve Resultant Document (with the Comparison Result) as a Stream‎

Get Document Result as Images

Using GroupDocs.Comparison Cloud API, you can compare documents and get the list of modifications ‎in the form of images. Following piece of code shows how you can compare a source and ‎a target ‎DOCX files and fetch their differences in a result.DOCX file. Later you can get the resultant DOCX file as ‎images using Node.js:‎

Get Supported Document Formats using Node.js

// load the module
var GroupDocs = require('groupdocs-comparison-cloud');

// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

// construct ComparisonApi
var infoApi = GroupDocs.InfoApi.fromKeys(appSid, appKey);

// retrieve supported file-formats
infoApi.getSupportedFileFormats()
  .then(function (response) {
    console.log("Supported file-formats:")
    response.formats.forEach(function (format) {
      console.log(format.fileFormat + " (" + format.extension + ")");
    });
  })
  .catch(function (error) {
    console.log("Error: " + error.message)
  });

Support and Learning Resources

GroupDocs.Comparison Cloud also offers individual document comparison SDKs for other popular languages as listed below:

  English
9a86c5d