Skip to content

Commit 4a3ac5a

Browse files
Added Spring and Dropwizard projects into Demos folder
1 parent af653bf commit 4a3ac5a

File tree

189 files changed

+6484
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+6484
-1
lines changed

Demos/Dropwizard/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add any directories, files, or patterns you don't want to be tracked by version control
2+
.idea/*
3+
*.iml
4+
*.ipr
5+
*.iws
6+
target/*
7+
.DS_Store
8+
vs.bin
9+
App_Data/*
10+
node_modules
11+
src/main/resources/assets/*
12+
!src/main/resources/assets/.gitkeep
13+
node/
14+
etc/
15+
package-lock.json
16+
Licenses/*
17+
!Licenses/.gitkeep
18+
DocumentSamples/*
19+
!DocumentSamples/.gitkeep
20+
src/test/resources/*
21+
!src/test/resources/calibre.docx

Demos/Dropwizard/.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
dist: trusty
2+
language: java
3+
jdk:
4+
- oraclejdk8
5+
- oraclejdk9
6+
- openjdk8
7+
#- oraclejdk11
8+
- openjdk10
9+
#- openjdk11
10+
services:
11+
- docker
12+
jobs:
13+
include:
14+
- stage: Coverage
15+
jdk: oraclejdk8
16+
script:
17+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18+
- chmod +x ./cc-test-reporter
19+
- ./cc-test-reporter before-build
20+
- mvn clean package
21+
- JACOCO_SOURCE_PATH=src/main/java ./cc-test-reporter format-coverage target/site/jacoco/jacoco.xml --input-type jacoco
22+
- ./cc-test-reporter upload-coverage
23+
- stage: Tag Release
24+
if: type = push AND branch = master AND commit_message !~ /^Travis bot released/
25+
install: skip
26+
script: git checkout master && git reset --hard $sha1 && git config --global push.followTags true && git config --global user.email "travis@travis-ci.org" && git config --global user.name "Travis CI" && export current_version=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec) && echo "current version ${current_version}" && export minor=$(echo $current_version | sed "s/^[0-9]\{1,\}\.[0-9]\{1,\}\.\([0-9]\{1,\}\)/\1/") && export major=$(echo $current_version | sed "s/^\([0-9]\{1,\}\.[0-9]\{1,\}\)\.[0-9]\{1,\}/\1/") && export next_version=$major.$((minor+1)) && echo "next version ${next_version}" && sed -i.bak "s/$current_version/$next_version/g" README.md && rm README.md.bak && sed -i.bak "s/^ <version>$current_version<\\/version>/ <version>$next_version<\\/version>/g" pom.xml && rm pom.xml.bak && git status && git commit -am "Travis bot released $next_version" && git tag -a $next_version -m "Automated release" && git remote add target https://${GH_TOKEN}@github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard.git > /dev/null 2>&1 && git remote -v && git push --set-upstream target master
27+
- stage: Release
28+
if: type = push AND branch = master AND commit_message =~ /^Travis bot released/
29+
install: skip
30+
jdk: oraclejdk8
31+
script: mvn -B clean package && mkdir -p target/release/DocumentSamples && mkdir -p target/release/Licenses && cp target/conversion-*.jar target/release && cp configuration.yml target/release && cd target && tar -zcvf release.tar.gz release && cd ..
32+
deploy:
33+
provider: releases
34+
overwrite: true
35+
skip_cleanup: true
36+
api_key: $GH_TOKEN
37+
file: target/release.tar.gz
38+
on:
39+
repo: groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard
40+
branch: master

Demos/Dropwizard/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM openjdk:8-jre-alpine
2+
RUN mkdir -p /home/groupdocs/app && apk add fontconfig && apk add msttcorefonts-installer && update-ms-fonts && fc-cache -f
3+
WORKDIR /home/groupdocs/app
4+
COPY target/release/DocumentSamples /home/groupdocs/app
5+
COPY target/release/Licenses /home/groupdocs/app
6+
COPY target/release/conversion-*.jar /home/groupdocs/app/app.jar
7+
8+
EXPOSE 8080
9+
10+
ENTRYPOINT java -jar /home/groupdocs/app/app.jar configuration.yml

Demos/Dropwizard/DocumentSamples/.gitkeep

Whitespace-only changes.

Demos/Dropwizard/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 GroupDocs.Conversion Product Family
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Demos/Dropwizard/README.md

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
![Convert pdf to doc or doc to pdf](https://raw.githubusercontent.com/groupdocs-conversion/groupdocs-conversion.github.io/master/resources/image/banner.png "GroupDocs.Conversion")
2+
# GroupDocs.Conversion for Java Dropwizard Example
3+
GroupDocs.Conversion for Java Dropwizard UI Example
4+
###### version 0.0.8
5+
6+
[![Build Status](https://travis-ci.org/groupdocs-Conversion/GroupDocs.Conversion-for-Java-Dropwizard.svg?branch=master)](https://travis-ci.org/groupdocs-Conversion/GroupDocs.Conversion-for-Java-Dropwizard)
7+
[![Maintainability](https://api.codeclimate.com/v1/badges/d12e227136c312bb3dad/maintainability)](https://codeclimate.com/github/groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard/maintainability)
8+
[![GitHub license](https://img.shields.io/github/license/groupdocs-Conversion/GroupDocs.Conversion-for-Java-Dropwizard.svg)](https://github.com/groupdocs-Conversion/GroupDocs.Conversion-for-Java-Dropwizard/blob/master/LICENSE)
9+
10+
## System Requirements
11+
- Java 8 (JDK 1.8)
12+
- Maven 3
13+
14+
15+
## Document converter with Java API
16+
17+
**GroupDocs.Conversion for Java API** is a library that allows you to **convert word to PDF, PNG, JPG** and to many other document or image formats supported by the library. Using powerful and flexible GroupDocs.Conversion API you will be able to convert multitude document formats with a wide set of different options.
18+
19+
This web application allows you to convert documents between different formats using simple modern UI. While it can be used as a standalone application it also can be integrated as part of your project.
20+
21+
**Note:** without a license application will run in trial mode, purchase [GroupDocs.Conversion for Java license](https://purchase.groupdocs.com/order-online-step-1-of-8.aspx) or request [GroupDocs.Conversion for Java temporary license](https://purchase.groupdocs.com/temporary-license).
22+
23+
| Document family | Supported formats | Supported conversions |
24+
| ------------------------ | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
25+
| Microsoft Word | `Doc`,`Docm`,`Docx`,`Dot`,`Dotm`,`Dotx`,`Rtf`,`Txt`,`Odt`,`Ott` | `Word to Rtf`,`Word to Txt`,`Word to Html`,`Word to Odt`,`Word to Ott`,`Word to Epub`,`Word to Pdf`,`Word to Image`,`Word to Cells`,`Word to Slides` |
26+
| Microsoft Excel | `Xls`,`Xls2003`,`Xlsb`,`Xlsm`,`Xlsx` | `Excel to Word`,`Excel to Pdf`,`Excel to Epub`,`Excel to Html`,`Excel to Image`,`Excel to Slides` |
27+
| Portable Document Format | `Pdf` | `Pdf to Word`,`Pdf to Epub`,`Pdf to Html`,`Pdf to Image`,`Pdf to Cells`,`Pdf to Slides` |
28+
| Microsoft PowerPoint | `Ppt`,`Pps`,`Pptx`,`Ppsx`,`Odp` | `Slides to Word`,`Slides to Pdf`,`Slides to Epub`,`Slides to Html`,`Slides to Image`,`Slides to Excel` |
29+
| Microsoft Visio | `Vsd`,`Vsdx`,`Vss`,`Vst`,`Vsx`,`Vtx`,`Vdw`,`Vdx`,`Svg` | `Visio to Word`,`Visio to Pdf`,`Visio to Epub`,`Visio to Html`,`Visio to Image`,`Visio to Excel`,`Visio to Slides` |
30+
| Microsoft Project | `Mpt`,`Mpp` | `Tasks to Word`,`Tasks to Pdf`,`Tasks to Epub`,`Tasks to Html`,`Tasks to Image`,`Tasks to Excel`,`Tasks to Slides` |
31+
| HTML | `Html` | `Html to Word`,`Html to Pdf`,`Html to Epub`,`Html to Cells`,`Html to Slides` |
32+
| Images | `Xps`,`Tiff`,`Tif`,`Jpeg`,`Jpg`,`Png`,`Gif`,`Bmp`,`Ico`,`Dxf`,`Dwg`,`Psd` | `Image to Word`,`Image to Pdf`,`Image to Epub`,`Image to Html`,`Image to Image`,`Image to Cells`,`Image to Slides` |
33+
34+
35+
## Demo Video
36+
37+
<p align="center">
38+
<a title="Document conversion for JAVA " href="https://www.youtube.com/watch?v=QC6P3EbF04o">
39+
<img src="https://raw.githubusercontent.com/groupdocs-conversion/groupdocs-conversion.github.io/master/resources/image/conversion.gif" width="100%" style="width:100%;">
40+
</a>
41+
</p>
42+
43+
44+
## Features
45+
46+
- Clean, modern and intuitive design
47+
- Easily switchable colour theme (create your own colour theme in 5 minutes)
48+
- Responsive design
49+
- Convert individual documents
50+
- Batch convert multiple documents
51+
- Mobile support (open application on any mobile device)
52+
- HTML and image modes
53+
- Drag and Drop support
54+
- Upload documents
55+
- Cross-browser support (Safari, Chrome, Opera, Firefox)
56+
- Cross-platform support (Windows, Linux, MacOS)
57+
58+
## How to run
59+
60+
You can run this sample by one of following methods
61+
62+
#### Build from source
63+
64+
Download [source code](https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard/archive/master.zip) from github or clone this repository.
65+
66+
```bash
67+
git clone https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard
68+
cd GroupDocs.Conversion-for-Java-Dropwizard
69+
mvn clean compile exec:java
70+
## Open http://localhost:8080/conversion/ in your favorite browser.
71+
```
72+
73+
#### Binary release (with all dependencies)
74+
75+
Download [latest release](https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard/releases/latest) from [releases page](https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard/releases).
76+
77+
**Note**: This method is **recommended** for running this sample behind firewall.
78+
79+
```bash
80+
curl -J -L -o release.tar.gz https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java-Dropwizard/releases/download/0.0.8/release.tar.gz
81+
tar -xvzf release.tar.gz
82+
cd release
83+
java -jar conversion-dropwizard-0.0.8.jar configuration.yaml
84+
## Open http://localhost:8080/conversion/ in your favorite browser.
85+
```
86+
87+
#### Docker image
88+
Use [docker](https://hub.docker.com/u/groupdocs) image.
89+
90+
```bash
91+
mkdir DocumentSamples
92+
mkdir Licenses
93+
docker run -p 8080:8080 --env application.hostAddress=localhost -v `pwd`/DocumentSamples:/home/groupdocs/app/DocumentSamples -v `pwd`/Licenses:/home/groupdocs/app/Licenses groupdocs/conversion
94+
## Open http://localhost:8080/conversion/ in your favorite browser.
95+
```
96+
97+
## Configuration
98+
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`.
99+
100+
### Conversion configuration options
101+
102+
| Option | Type | Default value | Description |
103+
| ---------------------------------- | ------- |:-----------------:|:-------------------------------------------------------------------------------------------------------------------------------------------- |
104+
| **`filesDirectory`** | String | `DocumentSamples` | Files directory path. Indicates where uploaded and predefined files are stored. It can be absolute or relative path |
105+
| **`resultDirectory`** | String | | Absolute path to result files directory |
106+
107+
108+
## License
109+
The MIT License (MIT).
110+
111+
Please have a look at the LICENSE.md for more details
112+
113+
## GroupDocs Conversion on other platforms & frameworks
114+
115+
- [Document converter](https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java-Spring) with JAVA Spring
116+
- [Document converter](https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-.NET-MVC) with .NET MVC
117+
- [Document converter](https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-.NET-WebForms) with .NET WebForms
118+
119+
120+
[Home](https://www.groupdocs.com/) | [Product Page](https://products.groupdocs.com/conversion/java) | [Documentation](https://docs.groupdocs.com/conversion/java/) | [Demos](https://products.groupdocs.app/conversion/family) | [API Reference](https://apireference.groupdocs.com/java/conversion) | [Examples](https://github.com/groupdocs-conversion/GroupDocs.conversion-for-Java/tree/master/Examples) | [Blog](https://blog.groupdocs.com/category/annotation/) | [Free Support](https://forum.groupdocs.com/c/conversion) | [Temporary License](https://purchase.groupdocs.com/temporary-license)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add files here to ignore them from prettier formatting
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"nrwl.angular-console",
4+
"angular.ng-template",
5+
"ms-vscode.vscode-typescript-tslint-plugin",
6+
"esbenp.prettier-vscode"
7+
]
8+
}

0 commit comments

Comments
 (0)