Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allenhwkim/java-itext-html2pdf
Convert HTML to PDF, iText7 + Maven + Spring Boot
https://github.com/allenhwkim/java-itext-html2pdf
Last synced: 7 days ago
JSON representation
Convert HTML to PDF, iText7 + Maven + Spring Boot
- Host: GitHub
- URL: https://github.com/allenhwkim/java-itext-html2pdf
- Owner: allenhwkim
- Created: 2022-08-09T21:24:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-10T15:09:37.000Z (over 2 years ago)
- Last Synced: 2024-04-14T10:08:19.613Z (7 months ago)
- Language: HTML
- Size: 542 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Requirements
1. Install JDK 1.8 (You might already have it installed)
2. Install Maven 3.8 (https://phoenixnap.com/kb/install-maven-windows)
3. set JAVA_HOME and PATH. The following is for GitBash
```
$ cat ~/.bashrc
export JAVA_HOME=/c/Program\ Files/Java/jdk1.8.0_331
export CLASSPATH=$CLASSPATH:/c/Users/allen.kim1/projects/jars/licensing-base-4.0.3.jar
export PATH=$JAVA_HOME/bin:/c/Users/allen.kim1/apache-maven-3.8.6/bin/mvn:$PATH
```## To Start
```
$ git clone https://github.com/allenhwkim/java-itext-html2pdf.git
$ cd java-itext-html2pdf
$ #
$ mvn install
$ mvn exec:java -Dexec.mainClass=App
$ # open a browser and visit http://localhost:8080
$ # click "submit" button to see pdf generated from html
```