Skip to content

Instantly share code, notes, and snippets.

@Rajeshr34
Last active July 8, 2024 05:42
Show Gist options
  • Save Rajeshr34/2e9b2438ff142e51c729b4b9b772680a to your computer and use it in GitHub Desktop.
Save Rajeshr34/2e9b2438ff142e51c729b4b9b772680a to your computer and use it in GitHub Desktop.
Wkhtmltopdf With Patched QT Setup Ubuntu 16+
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
@sivanaharon
Copy link

sivanaharon commented Oct 19, 2018

You are my hero. I spent so long trying to figure out how to do this properly and this script works perfectly!

@controljud
Copy link

Man, you rule!

@danielnogueira-dev
Copy link

thanks for help!

@douglasgsouza
Copy link

Thank you!

@fabianof
Copy link

fabianof commented Oct 2, 2019

It worked like a charm. Thanks a lot.

@amelotrgr
Copy link

Perfect. Thanks for sharing.

@FrankL-git
Copy link

Wow! Thank you so much!

@JuanCrg90
Copy link

Thanks!

@Mosallamy
Copy link

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 👍👍

@thechip007
Copy link

Ur fucking genius man

@thechip007
Copy link

thanks for the help

@bf
Copy link

bf commented Dec 20, 2020

Thank you so much! It still worked with Ubuntu 18.04 at the end of 2020!

@pablosebastianr
Copy link

Freaking awesome. Just did this on Debian buster.
Thanks!

@sifat-bs23
Copy link

Thanks a Ton!!!!!!!

@jaydevvaghela943
Copy link

You save my day. Thanks Man

@sembonshem
Copy link

OMG, spent days trying out various settings but nothing worked , Thank you very much for this, worked like a charm

@kaiherrman
Copy link

OMG, spent minutes trying out various settings but nothing worked , Thank you very much for this, worked like a charm

@WhatsDiscuss
Copy link

Works on ubuntu 22.04

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