3 ms·
Does headless chrome do PDF generation? That's the only thing I'm using phantom for at the moment.
by fareesh 9y ago
Does headless chrome do PDF generation? That's the only thing I'm using phantom for at the moment.
- madeofpalk 9y agoYes. In fact, there's a command line switch for it https://developers.google.com/web/updates/2017/04/headless-chrome#create_a_pdf_dom 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 https://github.com/GoogleChrome/puppeteer
- dewey 9y agoFirst result: --print-to-pdf https://developers.google.com/web/updates/2017/04/headless-chrome https://developers.google.com/web/updates/2017/04/headless-c...
- itslennysfault 9y agoYes. It's really easy to do using [puppeteer](https://github.com/GoogleChrome/puppeteer https://github.com/GoogleChrome/puppeteer). The 2nd or 3rd example is PDF.