<repositories>
   <repository>
      <id>repository.groupdocs.com</id>
      <name>GroupDocs Repository</name>
      <url>https://releases.groupdocs.com/java/repo/</url>
   </repository>
</repositories>

<dependencies>
   <dependency>
      <groupId>com.groupdocs</groupId>
      <artifactId>groupdocs-comparison</artifactId>
      <version>24.7</version>
   </dependency>
</dependencies>
copied!  
repositories {
    maven {
        url 'https://releases.groupdocs.com/java/repo/'
    }
}

compile(group: 'com.groupdocs', name: 'groupdocs-comparison', version: '24.7')
copied!  
<ivysettings>
    <settings defaultResolver="chain"/>
    <resolvers>
        <chain name="chain">
            <ibiblio name="GroupDocs Repository" m2compatible="true" root="https://releases.groupdocs.com/java/repo/"/>
        </chain>
    </resolvers>
</ivysettings>

<dependency org="com.groupdocs" name="groupdocs-comparison" rev="24.7">
   <artifact name="groupdocs-comparison" ext="jar"/>
</dependency>
copied!  
resolvers += Resolver.url("GroupDocs Repository", url("https://releases.groupdocs.com/java/repo/"))

libraryDependencies += "com.groupdocs" % "groupdocs-comparison" % "24.7"
copied!  

Java High Code API to Compare Documents & Extract Information

main-banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

GroupDocs.Comparison for Java is a Java class library & on-premise API for building document comparison & information extraction Java applications with support to compare files from Microsoft Office Word®, Excel®, PowerPoint®, Visio®, OneNote®, OpenOffice®, eBook, PDF, images and various other file formats. Detect document changes by comparing files & accept / reject changes. Compare source code files of supported programming languages, merge them & highlight the changes if required.

Document Comparison Java On-premise API Features

Supported Document Comparison File Formats

Fixed Layout: PDF
Microsoft Word®: DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTX
Microsoft Excel®: XLS, XLT, XLSX, XLTM, XLSB, XLSM, CSV
AutoCAD®: CAD
Microsoft PowerPoint®: POT, POTX, PPS, PPSX, PPTX, PPT
Microsoft Visio®: VSDX, VSD, VSS, VST, VDX
Microsoft OneNote®: ONE
OpenOffice® Writer: ODT, OTT
OpenOffice® Impress: ODP, OTP
OpenOffice® Calc: ODS
Text: TXT
Web: HTM, HTML, MHT, MHTML
eBook: MOBI, DJVU
Medical Imaging: DCM
Autodek®: DWG
AutoCAD® DXF
Image: BMP, GIF, JPG, JPEG, PNG
Microsoft Outlook® EML, EMLX, MSG
Programming Language: CS, JAVA, CPP, JS, PY, RB

For details and limitations please visit, Supported Document Formats.

System Requirements

  • Microsoft Windows: Windows Desktop & Server (x86, x64), Microsoft Azure
  • macOS: Mac OS X
  • Linux: Ubuntu, OpenSUSE, CentOS, and others
  • Java:
    • J2SE 7.0 (1.7) DEPRECATED
    • J2SE 8.0 (1.8) or above (for example Java 10)

GroupDocs.Comparison for Java does not require any external software or third party tool to be installed. Just follow one of the ways as described in Installation and Configuration.

Get Started

GroupDocs hosts all Java APIs at the GroupDocs Repository. You can easily use GroupDocs.Comparison for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installation from GroupDocs Repository using Maven documentation page.

Sample Java code to Compare two PDF files from Stream

try (Comparer comparer = new Comparer(new FileInputStream("C:\\source.pdf"))) {
    comparer.add(new FileInputStream("C:\\target.pdf"));
    final Path resultPath = comparer.compare(new FileOutputStream("C:\\result.pdf"));
}

Product Page | Docs | Demos | API Reference | Examples | Blog | Free Support | Temporary License

VersionRelease Date
24.7July 13, 2024
24.6June 16, 2024
24.3March 18, 2024
23.10October 19, 2023
23.5May 31, 2023
23.3March 3, 2023
23.1January 13, 2023
22.11November 4, 2022
22.3March 28, 2022
21.6January 25, 2022
19.6January 25, 2022
18.6.3January 25, 2022
18.6.2January 25, 2022
17.3.2January 25, 2022
21.6.1June 25, 2021
20.11November 18, 2020
20.4April 30, 2020
19.10October 18, 2019
19.3March 27, 2019
18.6.1July 19, 2018
18.6June 5, 2018
16.11April 19, 2018
17.3.0April 19, 2018
17.3.1April 19, 2018
3.2.0April 19, 2018