-
-
Save Rajeshr34/2e9b2438ff142e51c729b4b9b772680a to your computer and use it in GitHub Desktop.
cd ~ | |
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 | |
#replace arch | |
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb | |
dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb | |
apt --fix-broken install |
Man, you rule!
thanks for help!
Thank you!
It worked like a charm. Thanks a lot.
Perfect. Thanks for sharing.
Wow! Thank you so much!
Thanks!
Thank you so much. I had an issue where wkhtmltopdf on Ubuntu generated a different style than the one on mac, this totally fixed it 👍👍
Ur fucking genius man
thanks for the help
Thank you so much! It still worked with Ubuntu 18.04 at the end of 2020!
Freaking awesome. Just did this on Debian buster.
Thanks!
Thanks a Ton!!!!!!!
You save my day. Thanks Man
OMG, spent days trying out various settings but nothing worked , Thank you very much for this, worked like a charm
OMG, spent minutes trying out various settings but nothing worked , Thank you very much for this, worked like a charm
Works on ubuntu 22.04
From Cortex on StackOverflow (https://stackoverflow.com/a/77218633/492132). Works on Ubuntu 24 as well:
sudo apt-get install xfonts-75dpi
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo apt --fix-broken install
rm wkhtmltox_0.12.6.1-2.jammy_amd64.deb
Confirm it works with:
wkhtmltopdf -V
=> wkhtmltopdf 0.12.6.1 (with patched qt)
You are my hero. I spent so long trying to figure out how to do this properly and this script works perfectly!