开发者

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

开发者 https://www.devze.com 2023-02-24 16:33 出处:网络
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 settin开发者_运维问答g up the php bindings as wel

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 settin开发者_运维问答g up the php bindings as well.

Thanks

Jason


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");
0

精彩评论

暂无评论...
验证码 换一张
取 消