HUB
Sign inSign up

crunchr/html2pdf

By crunchr

•Updated 15 days ago

Convert HTML to PDF using an API

Image
0

50K+

crunchr/html2pdf repository overview

⁠HTML to PDF converter

⁠Description

Use a JSON api to convert HTML to PDF files in an as-secure-way possible

⁠Usage

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

Tag summary

Content type

Image

Digest

sha256:f08baec69…

Size

462.9 MB

Last updated

15 days ago

docker pull crunchr/html2pdf