I am using wkhtmltopdf to generate pdf's from html, I am trying to run the below command through PHP exec() function, but its does not generate the pdf, I does not show any error though. But when i ran the same command through command line it works.
Below is my PHP code taht I am using to execute the pdf generate command.
$command = "wkhtmltopdf -s A4 /inputhtmlfilepath/test.html /outputfilepath/output.pdf";
exec($command);
Some info about my setup:
Operating system - Ubuntu 12.04
PHP Version - 5.4.3
Any help would be appreciated, Thanks.