Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active October 5, 2022 16:05
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save fedir/48caf91c02197ecb68c22a70555f6f0e to your computer and use it in GitHub Desktop.
Save fedir/48caf91c02197ecb68c22a70555f6f0e to your computer and use it in GitHub Desktop.
Install wkhtmltopdf on Debian 8, 9
apt-get update
aptitude install xfonts-base xfonts-75dpi fontconfig xvfb
mkdir ~/src/wkhtmltopdf -p
cd ~/src/wkhtmltopdf
wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/local/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh
chmod a+rx /usr/bin/wkhtmltopdf.sh
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/sbin/wkhtmltopdf
/usr/local/sbin/wkhtmltopdf https://www.google.fr output.pdf
apt-get update
apt-get install wkhtmltopdf xvfb xauth xfonts-base xfonts-75dpi fontconfig
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh
chmod a+rx /usr/bin/wkhtmltopdf.sh
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/sbin/wkhtmltopdf
/usr/local/sbin/wkhtmltopdf https://www.google.fr output.pdf
@errogaht
Copy link

errogaht commented Apr 5, 2018

I believe it's without patched QT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment