<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-comparison-cloud</artifactId>
<version>26.6</version>
</dependency>
copied!  
compile(group: 'com.groupdocs', name: 'groupdocs-comparison-cloud', version: '26.6')
copied!  
<dependency org="com.groupdocs" name="groupdocs-comparison-cloud" rev="26.6">
 <artifact name="groupdocs-comparison-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.groupdocs" % "groupdocs-comparison-cloud" % "26.6"
copied!  

Document Comparison Java Cloud REST API

main-banner

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

GroupDocs.Comparison Cloud SDK for Java helps you build cloud Document Comparison Java Apps that work without installing any 3rd party software. It is a wrapper around GroupDocs.Comparison Cloud REST APIs.


Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven

Prerequisites

To use GroupDocs.Comparison Cloud SDK for Java you need to register an account with GroupDocs Cloud and lookup/create Client ID and Client Secret at Cloud Dashboard. There is free quota available. For more details, see GroupDocs Cloud Pricing.

Install GroupDocs.Comparison-Cloud from Maven

Add GroupDocs Cloud repository to your application pom.xml

<repository>
    <id>repository.groupdocs.cloud</id>
    <name>repository.groupdocs.cloud</name>
    <url>https://releases.groupdocs.cloud/java/repo/</url>
</repository>

Install from source

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project’s POM:

<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-comparison-cloud</artifactId>
    <version>22.4</version>
    <type>pom</type>
</dependency>

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/groupdocs-comparison-cloud-22.4.jar
  • target/lib/*.jar

Get Started

Please follow the Quick Start instructions.

Sample Java Code to list Cloud Document Comparison Changes

// For complete examples and data files, please go to https://github.com/groupdocs-comparison-cloud/groupdocs-comparison-cloud-java-samples
String MyClientSecret = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
String MyClientId = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud

Configuration configuration = new Configuration(MyClientId, MyClientSecret);

CompareApi apiInstance = new CompareApi(configuration);

FileInfo sourceFileInfo = new FileInfo();
sourceFileInfo.setFilePath("source_files/word/source.docx");
FileInfo targetFileInfo = new FileInfo();
targetFileInfo.setFilePath("target_files/word/target.docx");

ComparisonOptions options = new ComparisonOptions();
options.setSourceFile(sourceFileInfo);
options.addTargetFilesItem(targetFileInfo);

PostChangesRequest request = new PostChangesRequest(options);
List<ChangeInfo> changes = apiInstance.postChanges(request);

Authorization & Authentication

Authentication schemes defined for the API is as follows:

JWT

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
26.6June 11, 2026
26.5June 11, 2026
25.11November 19, 2025
25.2October 23, 2025
24.2February 26, 2024
23.12December 13, 2023
23.4May 2, 2023
22.4April 14, 2022
20.12January 25, 2022
19.5January 25, 2022
18.9January 25, 2022
21.7July 16, 2021
21.3March 11, 2021
20.5May 21, 2020
18.4September 25, 2018