Earlier quoted context omitted.
FWIW, you can do that now, using phantomjs (which is chrome) http://phantomjs.org/screen-capture.html
Also with https://wkhtmltopdf.org/ and http://pandoc.org/
Chrome 59 has cross-platform headless support
21–30 of 161 posts
Re: Chrome 59 has cross-platform headless support
#22Please let this be capable of generating PDFs from HTML from the command line.
Re: Chrome 59 has cross-platform headless support
#23server side SCTP to client(p2p over SCTP/data channel) would be cool.
Re: Chrome 59 has cross-platform headless support
#24Any chance for webgl here? Would be nice for automatic screenshots and webgl tests.
https://docs.google.com/document/d/1VTcYz4q_x0f1O5IVrvRX4u1D...
Re: Chrome 59 has cross-platform headless support
#25What does this mean for Electron and other apps that depend on Electron?
Re: Chrome 59 has cross-platform headless support
#26Any way of scripting this to automate button clicks etc? I use PhantomJS for this now but found it to be incredibly unstable for complex pages.
or wait for this issue: https://github.com/segmentio/nightmare/issues/224
Re: Chrome 59 has cross-platform headless support
#27Please let this be capable of generating PDFs from HTML from the command line.
Is there an easy way to do the opposite? e.g. read PDFs as HTML (intended to be read through a remote shell), or text?
https://github.com/mozilla/pdf.js/blob/master/examples/learn...
Re: Chrome 59 has cross-platform headless support
#28Please let this be capable of generating PDFs from HTML from the command line.
Is there an easy way to do the opposite? e.g. read PDFs as HTML (intended to be read through a remote shell), or text?
Producing nice semantic HTML is much harder, though also easy if you don't mind every word in a separate absolutely positioned div.
Many PDF reader software already contains empirically tuned routines to infer the text flow and generate text files (because the software needs to handle Select All and Copy), but they often produce bad results.
But if you just want to read a PDF on a remote machine over ssh, the easiest solution might be just transferring the file and then opening it locally, or use X forwarding and open the PDF with a graphic reader.
Re: Chrome 59 has cross-platform headless support
#29This is fantastic. I'm using a combination of Chrome and PhantomJS for karma testing right now, for https://github.com/paypal/paypal-checkout and https://github.com/krakenjs/xcomponent . There are hundreds of tests opening up hundreds of iframes and popup windows, and sending a lot of cross-window messages, and that ends up being really memory hungry. Chrome deals pretty well with garbage collection, so long as I'm c…
Re: Chrome 59 has cross-platform headless support
#30Also checkout https://github.com/cyrus-and/chrome-remote-interface for an easy way to fully control those headless instances
It's also worth noting that the 57+ series has a nice embedded viewer you can use to view the actual viewport via devtools.