I know that there is a lot of posts about this problem.But can someone help me to setup this http://www.rustyparts.com/pdf.php script to work on my localhost.I just spent all week on this problem.I have download imagemagic,ghostscript,activeperl,…,everything,but still can’t make simple example to work.
Share
Use wkhtmltopdf via a system call. See How to install wkhtmltopdf on a linux based (shared hosting) web server for installation help.
See the sample from this page here.
php code tested on Ubuntu (you’ll need to change the
/tmp/to a temporary directory on Windows):There are also php bindings which removes the need to use a system call yourself, which is a simpler (and safer!) option.