wkhtmltox Download it to home directory cp ~/wkhtmltox/bin/wkhtmltopdf /usr/bin/ sudo chown root:root /usr/bin/wkhtmltopdf sudo chmod +x /usr/bin/wkhtmltopdf wkhtmltopdf http://www.baidu.com ./baidu_index.html