Reputation: 321
I'm using wkhtmltopdf for generate a invoice, everything is ok when i run it from shell
/usr/local/bin/wkhtmltopdf invoice/test.html invoice/test.pdf
but didn't work when i run from php
exec('/usr/local/bin/wkhtmltopdf invoice/test.html invoice/test.pdf 2>&1');
I receive a information "[> ] 0% [=========>] 10%" and the file didn't create.
Any suggestion what is wrong ?
Upvotes: 0
Views: 1126
Reputation: 426
Agree that this can be an access right issue.
Try to save to another folder/file:
Desktop/test.pdf
Upvotes: 1