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 ?