如何在Linux (centos)上安装带有PHP绑定的wkhtmltopdf


How do I install wkhtmltopdf with the PHP bindings on Linux (centos)

如何在Linux (centos 5+)上安装PHP绑定的wkhtmltopdf ?

我的问题与其他问题略有不同,因为我也需要帮助设置php绑定。

感谢杰森

这里有一个更简单的方法来编程调用wkhtmltopdf:
http://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp

对于这个应用程序来说,

PHP绑定确实是多余的。在大多数情况下,你可以只执行它:

exec("wkhtmltopdf http://example.org/ pdf1.pdf");
$pdf = file_get_contents("pdf1.pdf");