如何在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");