I am trying to use rasterize.js from the exmaple phantomjs folder to capture a webpage in a PDF. The problem I encountered is that the webpage requires user login. Then I saw that there is a cookie option for Phantomjs. The website is powered by Django, if that matters.
So, I entered the site courageously, opened firebug and typed document.cookie in firebug. I got the cookie settings and placed in cookie.txt.
[http:
Then I used rasterize.js to create the pdf, as shown below:
phantomjs --cookies-file=cookies.txt examples/rasterize.js http://localhost:7000/reports /tmp/report.pdf
But the result is the journal page.
tmaster
source share