Skip to content

Commit 709ce03

Browse files
Examples for GroupDocs.Comparison for Java
1 parent 2a4c53e commit 709ce03

82 files changed

Lines changed: 2303 additions & 1408 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
/target/
1+
/target
2+
/output
3+
.idea
4+
*.iml
5+
*.lic
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
# GroupDocs.Comparison for Java Examples
3+
4+
This package contains Java Example Projects for GroupDocs.Comparison for Java and sample files.
5+
6+
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.
7+
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.
8+
Features:
9+
* Document comparison - detect differences between source and target document(s) for 50+ supported file formats;
10+
* Categorize differences between document parts:
11+
- Deleted – highlighted with red color;
12+
- Added – highlighted with blue color;
13+
- Modified – highlighted with green color;
14+
* Style changes detection for the formats which support styles such as Words Processing, Presentation, PDF;
15+
* Words detection for Word Processing formats;
16+
* Formatting change detection, such as adding or removing paragraphs, line breaks in Word Processing format and PDF.
17+
* Apply or reject changes and save resultant document;
18+
* Obtain image representations of document pages with/without changes.
19+
Supported document formats:
20+
* Portable Document Formats - PDF (PDF/A-1a, PDF/A-1b, PDF/A-2a);
21+
* Microsoft Word documents - DOC, DOCX, DOCM, DOT, DOTM, DOTX, RTF, TXT;
22+
* Microsoft Excel spreadsheets - XLS, XLSX, XLT, XLTM, XLSB, XLSM, CSV;
23+
* Microsoft PowerPoint presentations - PPT, PPTX, POT, POTX, PPS, PPSX;
24+
* Microsoft Visio diagrams - VSD, VSDX, VSS, VST, VDX;
25+
* Microsoft OneNote - ONE;
26+
* Open Document formats - ODT, OTT, ODS, ODP, OTP;
27+
* Ebook - MOBI;
28+
* Image - PNG, JPG, BMP, DJVU, DICOM, DCM;
29+
* Email - EML, EMLX, MSG;
30+
* Autocad - DWG, DXF;
31+
* Markup - HTML, HTM, MHTML.
32+
33+
<p align="center">
34+
<a title="Download examples" href="https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java/archive/master.zip">
35+
<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%;">
36+
</a>
37+
</p>
38+
39+
## How to run the examples
40+
41+
- To run the examples with the Eclipse IDE follow [this article](https://docs.groupdocs.com/display/comparison/How+to+Run+Examples).
42+
43+
- 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.
44+
Uncomment the examples that you want to run in `RunExamples.java` file. Than navigate to `Examples` folder and run:
45+
46+
```
47+
mvn compile exec:java
48+
```
49+
50+
## Licensing
51+
52+
The license is not included into this repository, so GroupDocs.Comparison will work in the evaluation mode.
53+
The evaluation limitations are described [here](https://docs.groupdocs.com/display/comparison/Evaluation+Limitations+and+Licensing+of+GroupDocs.Comparison).
54+
To test all the features you can request temporary license at https://purchase.groupdocs.com/temporary-license.
55+
56+
In case you have a license, put it into `resources` folder and adjust license file name in the `Utils.java` file.
Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>GroupDocs.Comparison.Examples.Java</groupId>
55
<artifactId>GroupDocs.Comparison.Examples.Java</artifactId>
6-
<version>0.0.1-SNAPSHOT</version>
6+
<version>20.4</version>
77
<properties>
8-
<maven.compiler.source>8</maven.compiler.source>
9-
<maven.compiler.target>8</maven.compiler.target>
8+
<maven.compiler.source>7</maven.compiler.source>
9+
<maven.compiler.target>7</maven.compiler.target>
10+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1011
</properties>
1112

1213
<dependencies>
1314
<dependency>
1415
<groupId>com.groupdocs</groupId>
1516
<artifactId>groupdocs-comparison</artifactId>
16-
<version>19.10</version>
17+
<version>${project.version}</version>
1718
</dependency>
1819
</dependencies>
1920
<repositories>
2021
<repository>
21-
<id>GroupDocsJavaAPI</id>
22-
<name>GroupDocs Java API</name>
23-
<url>https://repository.groupdocs.com/repo/</url>
22+
<id>GroupDocsArtifactRepository</id>
23+
<name>GroupDocs Artifact Repository</name>
24+
<url>http://repository.groupdocs.com/repo/</url>
2425
</repository>
2526
</repositories>
2627
<build>
@@ -30,5 +31,25 @@
3031
<filtering>true</filtering>
3132
</resource>
3233
</resources>
34+
35+
<pluginManagement>
36+
<plugins>
37+
<plugin>
38+
<groupId>org.codehaus.mojo</groupId>
39+
<artifactId>exec-maven-plugin</artifactId>
40+
<version>1.6.0</version>
41+
<executions>
42+
<execution>
43+
<goals>
44+
<goal>java</goal>
45+
</goals>
46+
</execution>
47+
</executions>
48+
<configuration>
49+
<mainClass>com.groupdocs.comparison.examples.RunExamples</mainClass>
50+
</configuration>
51+
</plugin>
52+
</plugins>
53+
</pluginManagement>
3354
</build>
3455
</project>
Binary file not shown.
Binary file not shown.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
X-Unsent: 1
2+
Message-ID: <35454c7e11a948e7bbbcb12dde84bbe5>
3+
Subject: Hello World! Subject
4+
From: "Source Sender Name" <sourceFrom@domain.com>
5+
To: "Source Name" <sourceTo@domain.com>
6+
Date: Thu, 1 Jun 2017 12:45:43 +0000
7+
Content-Type: text/html; charset="us-ascii"
8+
Content-Transfer-Encoding: quoted-printable
9+
MIME-Version: 1.0
10+
11+
<b>Hello World! Bold</b> <br/> <br/><font color=3Dblue>Goodbye world!</font=
12+
>
Binary file not shown.
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Welcome! This website is (quite obviously) a small text generator.
2+
It's fairly self-explanatory - you put some text in the first box, and it'll convert it into three different small text "fonts" for you.
3+
To be clear, they're not actually fonts.
4+
You can tell they're not fonts because it's possible to copy and paste the small text generated into other websites (like your Instagram bio, a Tumblr post, etc.).
5+
You wouldn't be able to do that if it was just a font. So how is this copy and paste stuff possible?
6+
Well, to answer that question, we need to learn a little bit about Unicode.
Binary file not shown.

0 commit comments

Comments
 (0)