unable to install wkhtmltopdf with patched qt in ubuntu 16.04

wkhtmltopdf在ubuntu 16.04中默认的包不能在odoo中使用,特此去stackoverflow挖了一顿,并做了部分调整,
方案如下:

sudo apt-get update
sudo apt-get install libxrender1 fontconfig xvfb
wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz -P /tmp/
cd /opt/
sudo tar xf /tmp/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz   #总是提示权限不足,后来把包解压缩到其他文件夹
sudo ln -s /opt/wkhtmltox/bin/wkhtmltopdf        /usr/bin/wkhtmltopdf   
sudo ln -s /opt/wkhtmltox/bin/wkhtmltoimage        /usr/bin/wkhtmltoimage

你可能感兴趣的:(unable to install wkhtmltopdf with patched qt in ubuntu 16.04)