Reprinted from: http://vivianyw.blog.163.com/blog/static/1345474222014334256367/
Wkhtmltopdf have a compiled Linux version, find the corresponding version in http://wkhtmltopdf.org/downloads.html, view the URL of the packaged file, download the compiled version:
32-bit version:
wget HTTP://DOWNLOADS.SOURCEFORGE.NET/PROJECT/WKHTMLTOPDF/0.12.0/WKHTMLTOX-LINUX-I386_0.12.0-03C001D.TAR.XZ
64 for version:
wget HTTP://DOWNLOADS.SOURCEFORGE.NET/PROJECT/WKHTMLTOPDF/0.12.0/WKHTMLTOX-LINUX-AMD64_0.12.0-03C001D.TAR.XZ
Unzip the downloaded file:
TAR-VXF WKHTMLTOX-LINUX-AMD64_0.12.0-03C001D.TAR.XZ
Get a directory Wkhtmltox, copy the wkhtmltopdf to the/usr/bin directory, change the owner, and add the executable properties
sudo cp wkhtmltox/bin/wkhtmltopdf/usr/bin/
sudo chown root:root/usr/bin/wkhtmltopdf
sudo chmod +x/usr/bin/wkhtmltopdf
Test it.
Wkhtmltopdf http://www.baidu.com Baidu.pdf
"Done" indicates a successful completion, the current directory appears a baidu.pdf, open, it is Baidu home page.
This wkhtmltopdf has been successfully installed, from the OpenERP client, to test the print function.
OK, pass!
How to install wkhtmltopdf in Ubuntu