Java Comparison APIs - Compare documents for differences

APIs for merging and comparing two same format documents on any Desktop/Server environment within any Java-based application

  Download Free Trial
Java Comparison API

GroupDocs.Comparison for Java

 

GroupDocs.Comparison for Java is a Documents Comparison, Difference Checker and Documents Merging API. It compares both Content and Styles of the documents. Supported with out-of-box ‘Track Changes’ functionality producing a summary file listing the source files with the changes made. All industry standard document formats including PDF, OpenDocument, HTML, Microsoft Word, Excel, PowerPoint and Text files supported.

Previous Next

Advanced Document Comparison API Features

 

 

Compares document contents of two or more files

 

Compare password protected files e.g Words, Cells, Slides and PDF

 

Compares font styles: bold, italic, underlines, strike-troughs, font types

 

Track all changes including deletion, insertion and formatting changes

 

Can be integrated easily

 

Optional support for built-in WebBased user interface

 

Generates a summary report

 

File IO though Java stream for reading and writing documents

 

Accept or reject changes in all type of comparison

 

Merge and compare up to three Word documents

 

Native Track Changes functionality: Original and the Changed document identification in Microsoft Word files

 

Save difference summary to DOC or DOCX format

 

Save HTML files to Word document

 

Save compared file as images

 

Can compare watermarks

 

Metered licensing

How API works

  • Get file source path as input.
  • Get file target path as input to compare with.
  • Define result path for Output.
  • Compare the source and target document.
  • Performs comparison operation and return the output (As Path, Stream) (if required)

Easy Integration

No complex document comparison workflows to find the changes within different versions but just few lines of code.

Document comparison - Java

 //Source and target files to be compared
String source = @"source.docx";
String target = @"target.docx";
Comparer comparer = new Comparer();
//Compare two documents
ICompareResult result = comparer.Compare(source, target, new ComparisonSettings());

Support and Learning Resources

 

GroupDocs.Comparison offers document automation APIs for other popular development environments as listed below: