Re:PhantomJS: Archiving the project, suspending development
by fareesh on Sunday March 04, 2018 @07:36AM
(#16514485)
Does headless chrome do PDF generation? That's the only thing I'm using phantom for at the moment.
[ Parent
| on HN ]
Re:PhantomJS: Archiving the project, suspending development
by madeofpalk on Sunday March 04, 2018 @07:42AM
(#16514500)
Yes.
In fact, there's a command line switch for it https://developers.google.com/web/updates/2017/04/headless-c...
The Chrome team also make Puppeteer, a node's library for interfacing with headless chrome, and has methods for making PDFs as well https://github.com/GoogleChrome/puppeteer
Re:PhantomJS: Archiving the project, suspending development
by dewey on Sunday March 04, 2018 @07:42AM
(#16514501)
First result:
--print-to-pdf
https://developers.google.com/web/updates/2017/04/headless-c...
Re:PhantomJS: Archiving the project, suspending development
by itslennysfault on Sunday March 04, 2018 @07:44AM
(#16514508)
Yes.
It's really easy to do using [puppeteer](https://github.com/GoogleChrome/puppeteer). The 2nd or 3rd example is PDF.