Simple html to pdf application. Takes the html input converts it to pdf.
Build docker image
docker build -t pdfgen .
Run docker image
docker run -dit -p 3000:3000 pdfgen
After you run the docker image you can use it easily like.
curl --location --request POST http://localhost:3000 --header 'Content-Type: application/json' --data-raw '{"html": "<h1>Hello world</h1>"}' -o sample.pdf
open sample.pdf