I am running the application on a local machine using artisan serve and getting in to pdf creation error. What I know is that I can’t use PhantomJS Cloud because the running application isn’t available via public domain. So my question is how can a local install of phantomjs can be configured to generate pdf previews etc.
Going through the code files, what I figured out so far is whenever PHANTOMJS_PDF_GENERATION is true the pdf generation goes to the web service of PhantomJS and not to local bin. What else do I need to configure to use the bin and not the web serice
we do have a new PDF generation engine which you may want to consider, you just need to add the following variables to your .env (be sure to run php artisan optimize afterwards)
@david is this implemented in the latest docker image?
phantomjs locally is not supported.
we do have a new PDF generation engine which you may want to consider, you just need to add the following variables to your .env (be sure to run php artisan optimize afterwards)
I did a fresh install and got the latest code from the v5-develop branch. While installing, it showed me a pdf being generated when I pressed the Test pdf button. But after installation, when I went to the invoice design section to customize and preview, it shows me a 500: Internal Server Error and exception window shows: Browser binary not found. Make sure you download it or set using setChromiumPath().
I double checked my google-chrome path, which is correct. Any idea why this exception is occurring?
production.ERROR: The process "/home/jsan/projects/invoiceninja/vendor/beganovich/snappdf/versions/chrome --headless --disable-gpu --print-to-pdf="/tmp/pdf_47MpnU.pdf" --print-to-pdf-no-header --hide-scrollbars --no-margins --no-sandbox /tmp/html_2ihmgW.html" exceeded the timeout of 60 seconds. {"userId":1,"exception":"[object] (Symfony\\Component\\Process\\Exception\\ProcessTimedOutException(code: 0): The process \"/home/jsan/projects/invoiceninja/vendor/beganovich/snappdf/versions/chrome --headless --disable-gpu --print-to-pdf=\"/tmp/pdf_47MpnU.pdf\" --print-to-pdf-no-header --hide-scrollbars --no-margins --no-sandbox /tmp/html_2ihmgW.html\" exceeded the timeout of 60 seconds. at /home/jsan/projects/invoiceninja/vendor/symfony/process/Process.php:1203)