There are many way to try out WKHTMLTOPDF, a really slick one is creating a stack on Play with Docker.
Login or signup, then create a new instance.
Download a Docker application definition:
curl -Lo docker-compose.yml https://gist.githubusercontent.com/cornernote/09221c5896d36133c3f36ecc13c928aa/raw/ca4c8504445fbc2c214250a49ffef506c08bd8c9/docker-compose.yml
curl -Lo Dockerfile https://gist.githubusercontent.com/cornernote/09221c5896d36133c3f36ecc13c928aa/raw/ca4c8504445fbc2c214250a49ffef506c08bd8c9/Dockerfile
Optionally build the stack
docker-compose build
Now try to generate PDFs
docker-compose run --rm wkhtmltopdf wkhtmltopdf google.com /app/test.pdf
docker-compose run --rm wkhtmltopdf wkhtmltopdf example.com /app/test.pdf
Thanks man.
On Mac OS Catalina there is a warning which will become a error in the future:
And the building is so slow...
I gathered information about a sleeker build for wkhtmltopdf here: https://stackoverflow.com/a/67304151/152016
What do you think of it ?
Thanks again.