News for hackers. Stuff that matters.
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.
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)
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.

Re:PhantomJS: Archiving the project, suspending development by jonaswi on Sunday March 04, 2018 @02:03PM (#16515977)
I just recently switched from using PhantomJS to pupeteer for PDF generation in a production application. Works like a charm and has a very clean API.
Re:PhantomJS: Archiving the project, suspending development by fareesh on Sunday March 04, 2018 @02:09PM (#16516009)
Thanks that looks like a very clean library. Will switch to this.