Dockerized wkhtmltopdf accepting html input on http port 80
2.2K
Dockerized wkhtmltopdf accepting html input on http port 80
Very simple, no error handling or any other complicated stuff
Installing the static wkhtmltopdf binary, as the standard ubuntu package can not run without a X11 environment
docker run -d -p 8080:80 svinther/docker-wkhtmltopdf
cURL example:
curl -sS -H "Expect:" --data-binary @filename.html http://localhost:8080/convert
Another Example:
echo "<h1>This is html</h1>" | curl -H "Expect:" --data-binary @- -sS http://localhost:8080/convert
Content type
Image
Digest
Size
85.7 MB
Last updated
over 7 years ago
docker pull svinther/docker-wkhtmltopdf