|
| 1 | + |
| 2 | +# GroupDocs.Comparison for Java Dropwizard Example |
| 3 | +New GroupDocs.Comparison for Java Dropwizard UI Example |
| 4 | +###### version 1.8.17 |
| 5 | + |
| 6 | +[](https://travis-ci.org/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard) |
| 7 | +[](https://codeclimate.com/github/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/maintainability) |
| 8 | +[](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/blob/master/LICENSE) |
| 9 | + |
| 10 | +## System Requirements |
| 11 | +- Java 8 (JDK 1.8) |
| 12 | +- Maven 3 |
| 13 | + |
| 14 | + |
| 15 | +## Compare documents with Java API |
| 16 | + |
| 17 | +**GroupDocs.Comparison for Java** is a library that allows you to **compare PDF, DOCX, PPT, XLS,** and over 90 other document formats. With GroupDocs.Comparison for Java you will be able to compare two or more files, perform style and text comparison and generate a detailed report with changes. |
| 18 | + |
| 19 | +This application allows you to compare multiple documents and can be used as a standalone application or integrated as part of your project. |
| 20 | + |
| 21 | +**Note:** without a license application will run in trial mode, purchase [GroupDocs.Comparison for Java license](https://purchase.groupdocs.com/order-online-step-1-of-8.aspx) or request [GroupDocs.Comparison for Java temporary license](https://purchase.groupdocs.com/temporary-license). |
| 22 | + |
| 23 | + |
| 24 | +## Demo Video |
| 25 | + |
| 26 | +<p align="center"> |
| 27 | + <a title="Document comparison for JAVA " href="https://www.youtube.com/watch?v=82RuvtV2qpw"> |
| 28 | + <img src="https://raw.githubusercontent.com/groupdocs-comparison/groupdocs-comparison.github.io/master/resources/image/comparison.gif" width="100%" style="width:100%;"> |
| 29 | + </a> |
| 30 | +</p> |
| 31 | + |
| 32 | + |
| 33 | +## Features |
| 34 | +#### GroupDocs.Comparison |
| 35 | +- Clean, modern and intuitive design |
| 36 | +- Easily switchable colour theme (create your own colour theme in 5 minutes) |
| 37 | +- Responsive design |
| 38 | +- Mobile support (open application on any mobile device) |
| 39 | +- HTML and image modes |
| 40 | +- Fully customizable navigation panel |
| 41 | +- Compare documents |
| 42 | +- Multi-compare several documents |
| 43 | +- Compare password protected documents |
| 44 | +- Upload documents |
| 45 | +- Display clearly visible differences |
| 46 | +- Download comparison results |
| 47 | +- Print comparison results |
| 48 | +- Smooth document scrolling |
| 49 | +- Preload pages for faster document rendering |
| 50 | +- Multi-language support for displaying errors |
| 51 | +- Cross-browser support (Safari, Chrome, Opera, Firefox) |
| 52 | +- Cross-platform support (Windows, Linux, MacOS) |
| 53 | + |
| 54 | + |
| 55 | +## How to run |
| 56 | + |
| 57 | +You can run this sample by one of following methods |
| 58 | + |
| 59 | +#### Build from source |
| 60 | + |
| 61 | +Download [source code](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/archive/master.zip) from github or clone this repository. |
| 62 | + |
| 63 | +```bash |
| 64 | +git clone https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard |
| 65 | +cd GroupDocs.Comparison-for-Java-Dropwizard |
| 66 | +mvn clean compile exec:java |
| 67 | +## Open http://localhost:8080/comparison/ in your favorite browser. |
| 68 | +``` |
| 69 | + |
| 70 | +#### Binary release (with all dependencies) |
| 71 | + |
| 72 | +Download [latest release](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/releases/latest) from [releases page](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/releases). |
| 73 | + |
| 74 | +**Note**: This method is **recommended** for running this sample behind firewall. |
| 75 | + |
| 76 | +```bash |
| 77 | +curl -J -L -o release.tar.gz https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/releases/download/1.8.17/release.tar.gz |
| 78 | +tar -xvzf release.tar.gz |
| 79 | +cd release |
| 80 | +java -jar comparison-1.8.6.jar configuration.yaml |
| 81 | +## Open http://localhost:8080/comparison/ in your favorite browser. |
| 82 | +``` |
| 83 | + |
| 84 | +#### Docker image |
| 85 | +Use [docker](https://hub.docker.com/u/groupdocs) image. |
| 86 | + |
| 87 | +```bash |
| 88 | +mkdir DocumentSamples |
| 89 | +mkdir Licenses |
| 90 | +docker run -p 8080:8080 --env application.hostAddress=localhost -v `pwd`/DocumentSamples:/home/groupdocs/app/DocumentSamples -v `pwd`/Licenses:/home/groupdocs/app/Licenses groupdocs/comparison |
| 91 | +## Open http://localhost:8080/comparison/ in your favorite browser. |
| 92 | +``` |
| 93 | + |
| 94 | +## Configuration |
| 95 | +For all methods above you can adjust settings in `configuration.yml`. By default in this sample will lookup for license file in `./Licenses` folder, so you can simply put your license file in that folder or specify relative/absolute path by setting `licensePath` value in `configuration.yml`. |
| 96 | + |
| 97 | +### Comparison configuration options |
| 98 | + |
| 99 | +| Option | Type | Default value | Description | |
| 100 | +| ---------------------------------- | ------- |:-----------------:|:-------------------------------------------------------------------------------------------------------------------------------------------- | |
| 101 | +| **`filesDirectory`** | String | `DocumentSamples` | Files directory path. Indicates where uploaded and predefined files are stored. It can be absolute or relative path | |
| 102 | +| **`fontsDirectory`** | String | | Path to custom fonts directory. | |
| 103 | +| **`defaultDocument`** | String | | Absolute path to default document that will be loaded automaticaly. | |
| 104 | +| **`preloadPageCount`** | Integer | `0` | Indicate how many pages from a document should be loaded, remaining pages will be loaded on page scrolling.Set `0` to load all pages at once | |
| 105 | +| **`multiComparing`** | String | `true` | Enable/disable multi comparing feature | |
| 106 | + |
| 107 | +## License |
| 108 | +The MIT License (MIT). |
| 109 | + |
| 110 | +Please have a look at the LICENSE.md for more details |
| 111 | + |
| 112 | +## GroupDocs Comparison on other platforms & frameworks |
| 113 | + |
| 114 | +- [Comapre documents](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Spring) with JAVA Spring |
| 115 | +- [Comapre documents](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-.NET-MVC) with .NET MVC |
| 116 | +- [Comapre documents](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-.NET-WebForms) with .NET WebForms |
| 117 | + |
| 118 | +[Home](https://www.groupdocs.com/) | [Product Page](https://products.groupdocs.com/comparison/java) | [Documentation](https://docs.groupdocs.com/comparison/java/) | [Demos](https://products.groupdocs.app/comparison/family) | [API Reference](https://apireference.groupdocs.com/java/comparison) | [Examples](https://github.com/groupdocs-comparison/GroupDocs.comparison-for-Java/tree/master/Examples) | [Blog](https://blog.groupdocs.com/category/comparison/) | [Free Support](https://forum.groupdocs.com/c/comparison) | [Temporary License](https://purchase.groupdocs.com/temporary-license) |
0 commit comments