Last active
October 5, 2022 16:05
-
-
Save fedir/48caf91c02197ecb68c22a70555f6f0e to your computer and use it in GitHub Desktop.
Install wkhtmltopdf on Debian 8, 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe it's without patched QT