
# GroupDocs.Comparison for Java Examples

This package contains Java Example Projects for GroupDocs.Comparison for Java and sample files.

GroupDocs.Comparison for Java is a flexible and feature rich library which allows you to compare documents for all popular document formats, such as PDF comparison, DOCX comparison, XLSX comparison and many more.
Compare documents, retrieve list of changes between source and target document(s), apply or reject changes and save results with GroupDocs.Comparison for Java API.
Features:
* Document comparison - detect differences between source and target document(s) for 50+ supported file formats;
* Categorize differences between document parts:
- Deleted  – highlighted with red color;
- Added – highlighted with blue color;
- Modified – highlighted with green color;
* Style changes detection for the formats which support styles such as Words Processing, Presentation, PDF;
* Words detection for Word Processing formats;
* Formatting change detection, such as adding or removing paragraphs, line breaks in Word Processing format and PDF.
* Apply or reject changes and save resultant document;
* Obtain image representations of document pages with/without changes.
Supported document formats:
* Portable Document Formats - PDF (PDF/A-1a, PDF/A-1b, PDF/A-2a);
* Microsoft Word documents - DOC, DOCX, DOCM, DOT, DOTM, DOTX, RTF, TXT;
* Microsoft Excel spreadsheets - XLS, XLSX, XLT, XLTM, XLSB, XLSM, CSV;
* Microsoft PowerPoint presentations - PPT, PPTX, POT, POTX, PPS, PPSX;
* Microsoft Visio diagrams - VSD, VSDX, VSS, VST, VDX;
* Microsoft OneNote - ONE;
* Open Document formats - ODT, OTT, ODS, ODP, OTP;
* Ebook - MOBI;
* Image - PNG, JPG, BMP, DJVU, DICOM, DCM;
* Email - EML, EMLX, MSG;
* Autocad - DWG, DXF;
* Markup - HTML, HTM, MHTML.

<p align="center">
  <a title="Download examples" href="https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java/archive/master.zip"> 
    <img src="https://camo.githubusercontent.com/11839cd752a2d367f3149c7bee1742b68e4a4d37/68747470733a2f2f7261772e6769746875622e636f6d2f4173706f73654578616d706c65732f6a6176612d6578616d706c65732d64617368626f6172642f6d61737465722f696d616765732f646f776e6c6f61645a69702d427574746f6e2d4c617267652e706e67" data-canonical-src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" style="max-width:100%;">
  </a>
</p>

## How to run the examples

- To run the examples with the Eclipse IDE follow [this article](https://docs.groupdocs.com/display/comparison/How+to+Run+Examples).

- To run the examples from a console it is required that [maven](https://maven.apache.org/download.cgi) is installed and configured in your system path.
Uncomment the examples that you want to run in `RunExamples.java` file. Than navigate to `Examples` folder and run:

  ```
  mvn compile exec:java
  ```

## Licensing

The license is not included into this repository, so  GroupDocs.Comparison will work in the evaluation mode.
The evaluation limitations are described [here](https://docs.groupdocs.com/display/comparison/Evaluation+Limitations+and+Licensing+of+GroupDocs.Comparison).
To test all the features you can request temporary license at https://purchase.groupdocs.com/temporary-license.

In case you have a license, put it into `resources` folder and adjust license file name in the `Utils.java` file.