Warning
Not actively maintained. I found and use the API of StirlingPDF with a similar feature as of now.
Converts HTML to a PDF file
docker build -t html-to-pdf .
docker run -p 5000:5000 -d html-to-pdf
Website accessible on port 5000
http://localhost:5000/
Attach HTML as body to the POST-Request to
http://localhost:5000/api/html-to-pdf
Returns the PDF file as response