An open API service indexing awesome lists of open source software.

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

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).