LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to make phantomjs wait for page to load (https://www.linuxquestions.org/questions/linux-software-2/how-to-make-phantomjs-wait-for-page-to-load-4175519310/)

anon091 09-18-2014 11:58 AM

How to make phantomjs wait for page to load
 
Hi guys. New to phantomjs, only because it started making blank PDFs of the webpage we're pointing it at. We have a cron job of "phantomjs rasterize.js http://website.com filename.pdf" and if i change the extension to .png it makes a png ok.

Reading online, supposedly this solves issues like that, but I'm clueless on how to actually implement it to test. Anyone have any experience with phantomjs that could offer a tip?
http://newspaint.wordpress.com/2013/...-in-phantomjs/


All times are GMT -5. The time now is 01:43 AM.