@devchitchat/html-to-pdf
v1.0.0
Published
A Bun HTTP server that converts HTML to PDF. POST HTML, receive a PDF stream.
Maintainers
Readme
html-to-pdf
To install dependencies:
bun installTo run:
bun run index.jsThis project was created using bun init in bun v1.3.12. Bun is a fast all-in-one JavaScript runtime.
Usage
curl -X POST http://localhost:3000 --data-binary @file.html --output out.pdfDocker
docker build -t html-to-pdf .
docker run -p 3000:3000 html-to-pdfcurl -X POST http://localhost:3000 --data-binary @file.html --output out.pdf