Documents differences checking framework

Comparing PDF documents using Java applications

The GroupDocs.Comparison Java library provides detailed comparison reports for PDF documents in various kinds of applications that use J2EE or J2SE.

Comparing multiple PDF docs via Java

Compare PDFs with GroupDocs.Comparison and get reports about documents distinctions

  1. Download GroupDocs.Comparison for Java package from Maven and install it
  2. New Comparer instance must has path to one of PDF files
  3. At least one PDF document must be provided for comparison
  4. Result report is saved to provided path

// 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.pdf") 
{
    // Include additional files to comparing
	comparer.add("version1.pdf");
    comparer.add("version2.pdf");
    comparer.add("version3.pdf");

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

    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

Find out GroupDocs.Comparison for Java API advantages

Genuine GroupDocs.Comparison for Java API is crafted for composing reports full of useful data about differences inside PDF documents. Not only differences in text within paragraphs or words but also changes in shapes and text styles are represented at final report. Merging these alterations and exporting to a final document available too. In fact, there no need in external libraries. Only a few lines of code grant access to rich functionality.
Learn more
About illustration

Ready to get started?

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

Find any changes at PDF files via Java

Our Java software provides possibility to control PDF files versions by generating precise and detailed report in your favorite format.

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