Hacker News new | ask | show | jobs
by boredpudding 3452 days ago
Maybe it's possible with the print option Chrome offers. Regular Chrome can print to PDF files. Maybe headless Chrome supports that.

Edit: It's possible. It's on the introduction page of Chrome Headless

https://developers.google.com/web/updates/2017/04/headless-c...

Look at 'Create a PDF'

1 comments

Here's a simple library to do that: https://github.com/LucianoGanga/simple-headless-chrome