wkhtmltopdf without x server

apt-get install libxrender1
Download https://wkhtmltopdf.org/downloads.html
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb

ar vx wkhtmltox_0.12.5-1.bionic_amd64.deb
x – debian-binary
x – control.tar.gz
x – data.tar.xz

tar xf data.tar.xz
mv -v ./usr/local/bin/wkhtmlto* /usr/bin/
renamed ‘./usr/local/bin/wkhtmltoimage’ -> ‘/usr/bin/wkhtmltoimage’
renamed ‘./usr/local/bin/wkhtmltopdf’ -> ‘/usr/bin/wkhtmltopdf’

wkhtmltopdf
You need to specify at least one input file, and exactly one output file
Use – for stdin or stdout

Name:
wkhtmltopdf 0.12.5 (with patched qt)

Leave a Reply

Your email address will not be published.