Skip to content

Instantly share code, notes, and snippets.

@yajra
Last active March 7, 2024 00:17
Show Gist options
  • Star 41 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save yajra/80ae402e2084191cd1f6e17fa581320e to your computer and use it in GitHub Desktop.
Save yajra/80ae402e2084191cd1f6e17fa581320e to your computer and use it in GitHub Desktop.
Install wkhtmltopdf 0.12.4 (with patched qt)
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/
ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
@Zulko
Copy link

Zulko commented Oct 18, 2019

Thanks so much for sharing this, saved me a few hours!

@efleon9
Copy link

efleon9 commented Dec 27, 2019

I need install this lib too.
sudo apt-get install libfontconfig1 libxrender1

@wni5378
Copy link

wni5378 commented Feb 20, 2020

I eventually succeeded with the following on Debian Stretch 9.2:

sudo apt update
sudo apt install xfonts-75dpi xfonts-base gvfs colord glew-utils libvisual-0.4-plugins gstreamer1.0-tools opus-tools qt5-image-formats-plugins qtwayland5 qt5-qmltooling-plugins librsvg2-bin lm-sensors
sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
sudo dpkg -i wkhtmltox_0.12.5-1.stretch_amd64.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/

Then running:
wkhtmltopdf -V

Returns:
wkhtmltopdf 0.12.5 (with patched qt)

@nedvajz
Copy link

nedvajz commented Oct 8, 2020

Very helpful script, thanks !

@sifat-bs23
Copy link

Thanks a ton!!!!

@apitop
Copy link

apitop commented Jun 26, 2021

Thanks to @wni5378 I adapt its post to debian buster 10 and it worked :
apt-get install -y wget xfonts-75dpi
(note : I didn't need more packages, but I had already a lot of packages installed)
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_amd64.deb
dpkg -i wkhtmltox_0.12.5-1.buster_amd64.deb
cp /usr/local/bin/wkhtmltopdf /usr/bin/
cp /usr/local/bin/wkhtmltoimage /usr/bin/

@Khant-NyarxG-Next
Copy link

how i can get 0.12.6 with patched qt in my docker

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