Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard

Repository files navigation

GroupDocs.Comparison

GroupDocs.Comparison for Java Dropwizard Example

New GroupDocs.Comparison for Java Dropwizard UI Example

version 1.8.17

Build Status Maintainability GitHub license

⚠️ This repository has moved to https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java/tree/master/Demos/Dropwizard

System Requirements

  • Java 8 (JDK 1.8)
  • Maven 3

Compare documents with Java API

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.

This application allows you to compare multiple documents and can be used as a standalone application or integrated as part of your project.

Note: without a license application will run in trial mode, purchase GroupDocs.Comparison for Java license or request GroupDocs.Comparison for Java temporary license.

Demo Video

Features

GroupDocs.Comparison

  • Clean, modern and intuitive design
  • Easily switchable colour theme (create your own colour theme in 5 minutes)
  • Responsive design
  • Mobile support (open application on any mobile device)
  • HTML and image modes
  • Fully customizable navigation panel
  • Compare documents
  • Multi-compare several documents
  • Compare password protected documents
  • Upload documents
  • Display clearly visible differences
  • Download comparison results
  • Print comparison results
  • Smooth document scrolling
  • Preload pages for faster document rendering
  • Multi-language support for displaying errors
  • Cross-browser support (Safari, Chrome, Opera, Firefox)
  • Cross-platform support (Windows, Linux, MacOS)

How to run

You can run this sample by one of following methods

Build from source

Download source code from github or clone this repository.

git clone https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard
cd GroupDocs.Comparison-for-Java-Dropwizard
mvn clean compile exec:java
## Open http://localhost:8080/comparison/ in your favorite browser.

Binary release (with all dependencies)

Download latest release from releases page.

Note: This method is recommended for running this sample behind firewall.

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
tar -xvzf release.tar.gz
cd release
java -jar comparison-1.8.6.jar configuration.yaml
## Open http://localhost:8080/comparison/ in your favorite browser.

Docker image

Use docker image.

mkdir DocumentSamples
mkdir Licenses
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
## Open http://localhost:8080/comparison/ in your favorite browser.

Configuration

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.

Comparison configuration options

Option Type Default value Description
filesDirectory String DocumentSamples Files directory path. Indicates where uploaded and predefined files are stored. It can be absolute or relative path
fontsDirectory String Path to custom fonts directory.
defaultDocument String Absolute path to default document that will be loaded automaticaly.
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
multiComparing String true Enable/disable multi comparing feature

License

The MIT License (MIT).

Please have a look at the LICENSE.md for more details

GroupDocs Comparison on other platforms & frameworks

Home | Product Page | Documentation | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License