https://github.com/scientanl/html-pdf-export
HTML to PDF converter
https://github.com/scientanl/html-pdf-export
converter html pdf
Last synced: 10 months ago
JSON representation
HTML to PDF converter
- Host: GitHub
- URL: https://github.com/scientanl/html-pdf-export
- Owner: ScientaNL
- License: mit
- Created: 2018-11-06T09:30:25.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-02-18T10:22:00.000Z (over 1 year ago)
- Last Synced: 2025-04-05T22:51:09.175Z (about 1 year ago)
- Topics: converter, html, pdf
- Language: JavaScript
- Size: 15.9 MB
- Stars: 1
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html-pdf-export
HTTP Service to convert HTML to PDF. Using image from https://github.com/Surnet/docker-wkhtmltopdf
We used alpine linux instead of ubuntu to drasticly decrease the container size.
Furthermore, this repo is called export, but is actually a converter. This was done to remove cognitive load for our developers, as all our services are called exporter.
It was designed to run as a microservice. So make sure that you have a security layer to encrypt the traffic.
# Build
```
docker build -t scienta/html-pdf-export .
```
# Run
```
docker run -it --rm -p 8000:8000 scienta/html-pdf-export
```
# How to use it
```
curl http://localhost:8000 --data @file.html > file.pdf
```
More examples on [/examples](/examples).