-
-
Save wilspi/9984cf5346175dd4a27f195d47ff639c to your computer and use it in GitHub Desktop.
Wkhtmltopdf With Patched QT Setup: Ubuntu 16+ and Mac
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
# sudo apt-get install libfontenc1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y | |
# https://github.com/wkhtmltopdf/wkhtmltopdf/releases | |
if [ "$(uname -s)" = "Darwin" ]; then | |
# For Mac | |
cd ~ | |
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.macos-cocoa.pkg | |
sudo installer -verbose -pkg wkhtmltox-0.12.5-1.macos-cocoa.pkg -target / | |
else | |
# For Xenial: Ubuntu 16 | |
cd ~ | |
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.xenial_amd64.deb | |
sudo apt install -f xfonts-75dpi xfonts-base | |
sudo dpkg -i wkhtmltox_0.12.5-1.xenial_amd64.deb | |
sudo apt --fix-broken install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment