Hacker News new | ask | show | jobs
by fareesh 3035 days ago
Does headless chrome do PDF generation? That's the only thing I'm using phantom for at the moment.
3 comments

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

Yes.

It's really easy to do using [puppeteer](https://github.com/GoogleChrome/puppeteer). The 2nd or 3rd example is PDF.

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.
Thanks that looks like a very clean library. Will switch to this.