Installing Wkhtmltopdf in Laradock (or any docker container)

Add the following code in your php-fpm Dockerfile:

Note: This will install wkhtmltopdf v 0.12.5 (with patched qt) in your php-fpm container.

# laradock/php-fpm/Dockerfile# ...#-------------
# installing wkhtmltopdf
# ---------------
RUN apt-get install -y libpng-dev pkg-config
#…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store