News for hackers. Stuff that matters.
Re:Show HN: Ready-to-use API to convert any web page to PDF ... by sgolestane on Thursday November 02, 2017 @09:36PM (#15616058)
Is there anyway to make chrome wait until the page loads?
Re:Show HN: Ready-to-use API to convert any web page to PDF ... by lashkari on Monday November 06, 2017 @02:23PM (#15638183)
Looks like it prints automatically once Page.loadEventFired is triggered.

Alternatively, you can run Chrome headless with the remote debugging API (--remote-debugging-port=9222) and send a Page.printToPDF (https://chromedevtools.github.io/devtools-protocol/tot/Page/...) after some delay.