https://github.com/danfickle/openhtmltopdf-native
A proof-of-concept PDF generator with GraalVM native-image tool.
https://github.com/danfickle/openhtmltopdf-native
graalvm graalvm-native-image java pdf-generation
Last synced: 7 days ago
JSON representation
A proof-of-concept PDF generator with GraalVM native-image tool.
- Host: GitHub
- URL: https://github.com/danfickle/openhtmltopdf-native
- Owner: danfickle
- Created: 2021-05-27T15:43:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-27T15:56:55.000Z (about 5 years ago)
- Last Synced: 2025-11-11T09:09:36.018Z (8 months ago)
- Topics: graalvm, graalvm-native-image, java, pdf-generation
- Language: Java
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## OpenHTMLtoPDF with native-image
Aim is to make a blazing fast PDF generator. This is a proof-of-concept. See also [danfickle/openhtmltopdf](https://github.com/danfickle/openhtmltopdf)
## Instructions
I did this on an Oracle Cloud Ampere ARM compute instance (Oracle Linux 8) with 18GB of memory (always free eligible). I'd recommend an instance with at least 8GB of memory. It may also work on x86 (with a different yum repo below).
Create the instance and SSH into it:
+ `sudo yum update`
+ `sudo reboot`
+ `sudo yum install git`
+ `sudo yum install graalvm21-ee-11`
+ `sudo yum-config-manager --add-repo=http://yum.oracle.com/repo/OracleLinux/OL8/codeready/builder/aarch64`
+ `sudo yum install graalvm21-ee-11-native-image`
+ `git clone https://github.com/danfickle/openhtmltopdf-native.git`
+ `cd openhtmltopdf-native`
+ `chmod u+x build.sh`
+ `chmod u+x mvnw`
+ `./build.sh`
+ `cd target`
+ `./com.example.app` to run, will produce `test.pdf`.
+ At the moment testing consists of downloading `test.pdf` with `scp` and confirming it opens.
## Feedback welcome
+ Have you got this working on x86?
+ Have you got it working with a web server?
+ Serverless?