I have a PHP script that runs this command:
system("pdftohtml -i -noframes /home/myacc/pdfs/test.pdf");
When I run this from within public_html, an html file called test.html is successfully created and is placed in the public_html folder. However, when I run this from a cron job outside of public_html, no html file is created in any folder on the server.
Can anyone help me find where the resulting html file will be?
Thank you.
The problem lies in how cronjob work. Try to use the absolute location to pdftohtml.
Also, from your comment, you can’t change how pdftohtml write the output. However, there’s a trick to workaround this. That is by using custom shell script: