5 ms·
FWIW, you can do that now, using phantomjs (which is chrome) http://phantomjs.org/screen-capture.html http://phantomjs.org/screen-capture.html
by zwerdlds 9y ago
FWIW, you can do that now, using phantomjs (which is chrome)
http://phantomjs.org/screen-capture.html http://phantomjs.org/screen-capture.html
- velodrome 9y ago> FWIW, you can do that now, using phantomjs (which is chrome) http://phantomjs.org/screen-capture.html http://phantomjs.org/screen-capture.html It's based on webkit.
- theandrewbailey 9y agoOnce upon a time, but not anymore. https://www.chromium.org/blink https://www.chromium.org/blink
- deleted 9y ago[deleted]
- rubber_duck 9y agoPhantomJS is based on webkit (and an outdated version IIRC + a shitty JS interpreter)
- chews 9y agospecifically it's qtwebkit and an old version of it.
- eppsilon 9y agoThey recently released a beta version based on a newer version of QtWebKit: https://bitbucket.org/ariya/phantomjs/downloads/ https://bitbucket.org/ariya/phantomjs/downloads/
- dasmoth 9y agoIt's a useful tool (and huge thanks to those who built it -- and SlimerJS for that matter) but whenever I've reached for there's always been some issue to resolve, generally relating to the exact version and/or set of APIs supported. Headless mode (with PDF support -- which it looks like the latest version of the Chromium remote protocol does indeed have) built into a mainstream browsers is nearly guaranteed to be a smoother experience.
- chickenfries 9y agoAlso with https://wkhtmltopdf.org/ https://wkhtmltopdf.org/ and http://pandoc.org/ http://pandoc.org/
- pharrlax 9y agoTried all of these and haven't found any as good as http://www.nightmarejs.org/ http://www.nightmarejs.org/
- erichurkman 9y agoAnd, if you need much higher fidelity and control of HTML/CSS -> PDF, there's the fantastic Prince library, http://princexml.com/ http://princexml.com/ (nonfree) (I've been using Prince for over a decade, rendering everything from prescription labels, packing slips, receipts, resumes, books, and more. It's great.)
- jamespaden 9y agoThat's also an API service, http://docraptor.com http://docraptor.com, with a different pricing model that uses the Prince library for PDF rendering.
- zwerdlds 9y agoTough crowd.