简体   繁体   中英

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM