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

拟墨画扇 提交于 2020-01-06 08:47:08

问题


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

My question is slightly different to the other questions because I need help setting up the php bindings as well.

Thanks

Jason


回答1:


Here is a simpler method to programmatically invoke wkhtmltopdf:
http://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp

PHP bindings are really overkill for this applicaiton. In the majority of cases you can get away with just executing it:

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


来源:https://stackoverflow.com/questions/5630335/how-do-i-install-wkhtmltopdf-with-the-php-bindings-on-linux-centos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!