GroupDocs.Comparison for Java is the most flexible and easy to use API helping to develop document comparison applications in Java environment. The difference checker and document merging API enable you to detect changes and difference in content as well as text style between similar document formats. It supports comparing all industry standard document formats such as PDF, HTML, Microsoft Office Word, Excel spreadsheets, PowerPoint presentations, Outlook emails, Visio diagrams, OpenDocument, AutoCAD and images. Using the change-tracking feature, the differences summary between source and target document will be presented in a comprehensive comparison document. GroupDocs.Comparison for Java API allows fetching and saving simple, password protected, as well as encrypted documents via file as well as stream.
GroupDocs.Comparison for Java does not require any external software be installed on the system. It is compatible with all Java versions and supports popular operating systems (Windows, Linux, MacOS) that are capable to run Java runtime.
Compare and Identify Changes in both Content & Text Style
Save Summarized Comparison List about Compared Documents
Compare Specific Pages of Word Documents
Merge up to 3 Microsoft Word Files to Compare with Support for “Track Changes”
Easily Spot which Changes are coming from which Document during Comparison
Support to Read Source Documents and Send Resultant Document via Streams
Detect Type of File Format while Fetching from Stream
Compare Documents Protected by Password
Save Comparison Result as Image
Compare Different File Formats as Image
Compare Watermarks in PDF Documents
Compare Documents from File or Stream and Send Result Document via Stream or File
Accept or Discard Changes after Comparison of Word, PDF or Excel Files
Compare Encrypted Documents via File or Stream
Metered Licensing Option for Comparison Operations
Highlight Text for Marked Changes when Comparing PDF, Word, Excel, PowerPoint & Note Documents
Calculate Correct Coordinates of Changes in PDF, PowerPoint Slides & Diagrams
Compare Multiple (more than two) PDF, Excel, OneNote, Diagram, Email, & Text Documents
Compare Header & Footer of Supported File Formats
Compare Documents & Save Document Pages of Different Formats as Images
Through GroupDocs.Comparison for Java API you can easily compare documents of supported formats to find differences among them. Following example shows, how to compare two Microsoft Word documents using Java:
try (Comparer comparer = new Comparer("D:\\source.pdf")) {
comparer.add("D:\\target.pdf");
comparer.compare("D:\\result.pdf");
}
GroupDocs.Comparison for Java allows you to compare documents at three levels deep. You can set comparison intensity to be low (compare text word by word with accuracy for imaging grid = 50), middle (compare text character by character with accuracy for imaging grid = 100) or high (compare text character by character with accuracy for imaging grid = 150).
Along with document content, GroupDocs.Comparison for Java API allows to compare text style as well. Font name, size, color, style (bold, italic, underline, small caps, and hyperlinks) and if applicable, under color can also be compared to check difference among compared documents, while words and characters are being compared. For paragraph comparison, alignment, indentation (left indent, right indent), spacing (space after, space before), first line indent and line spacing can also be compared. Similarly, wherever applicable, other sections of a page can also be compared through GroupDocs.Comparison for Java API. The sections include, footer distance, page margins (left, right, top, and bottom), page height, page orientation, border color and line width.