Documents differences checking framework

Java applications for searching for distinctions in DOCX documents

Java library presented by GroupDocs.Comparison compares any DOCX documents in applications supports Java, J2EE or J2SE.

Use Java to multiple DOCX files comparison

Use GroupDocs.Comparison to compare MS Word documents

  1. Install our solution from Maven
  2. Comparer must be created with first DOCX document as a parameter
  3. Any comparison needs more than one DOCX document
  4. Resulting report provides useful data

// Check files from your hard drive for differences or similarities

// Create a Comparer object by specifying the initial file
try (Comparer comparer = new Comparer("main.docx") 
{
    // Include additional files to comparing
	comparer.add("version1.docx");
    comparer.add("version2.docx");
    comparer.add("version3.docx");

    // Get the report with the specified name as the result
    final Path resultPath = comparer.compare("full_report.docx"); 

    System.out.println("\nDocuments compared successfully.");
}
<dependencies> <dependency> <groupId>com.groupdocs</groupId> <artifactId>groupdocs-comparison</artifactId> <version>24.8</version> </dependency> </dependencies> <repositories> <repository> <id>repository.groupdocs.com</id> <name>GroupDocs Repository</name> <url>https://repository.groupdocs.com/repo/</url> </repository> </repositories>
click to copy
copied
More examples Documentation

Explore GroupDocs.Comparison for Java API advantages

DOCX documents comparison supported by GroupDocs.Comparison for Java API that composes reports containing data about various distinctions. Text within paragraphs, shapes and styles and other data are being analyzed. Furthermore, it is possible to compose one DOCX merging alterations from initial files. No need in any external libraries. Improve your Java projects adding a few lines of code.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Comparison for free or get a trial license for full access!

Control any changes at DOCX files using Java

GroupDocs.Comparison Java API allows users to control DOCX documents versions via precise and detailed reports which may be easily processed.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English