docker run --rm -v $(pwd):/data wkhtmltopdf \
--viewport-size 1280x1024 \
--page-size A4 \
http://www.google.com/ \
/data/test.pdf
This docker container lets you run wkhtmltopdf in a docker container.
docker build -t wkhtmltopdf .
docker run --rm -v $(pwd):/data wkhtmltopdf \
--viewport-size 1280x1024 \
--page-size A4 \
http://www.google.com/ \
/data/test.pdf
The mounted volume can be used to send local html files and to save the output.
The development of the container takes place on Github. If you have a question or a bug report to file, you can report as a github issue.
This image was built at AccessBookings.