Use a JSON api to convert HTML to PDF files in an as-secure-way possible
To run locally e.g. on port 8113:
docker run --rm --publish 8113:80 --name html2pdf crunchr/html2pdf
To generate a pdf manually:
curl -X POST http://localhost:8113/api/html2pdf -H 'Content-Type: application/json' -d '{"content":"<h1>Hello world</h1>","options":{}}' --output output.pdf
Content type
Image
Digest
sha256:f08baec69…
Size
462.9 MB
Last updated
15 days ago
docker pull crunchr/html2pdf