Re:Show HN: Ready-to-use API to convert any web page to PDF ...
by xilni on Thursday November 02, 2017 @12:58PM
(#15612133)
This is exactly what I do bundled into a nice function added to my .zshrc
[ Parent
| on HN ]
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.
Re:Show HN: Ready-to-use API to convert any web page to PDF ...
by zulln on Thursday November 02, 2017 @06:44PM
(#15615006)
What do you use this for?
Re:Show HN: Ready-to-use API to convert any web page to PDF ...
by nsomaru on Thursday November 02, 2017 @08:01PM
(#15615528)
Save a webpage as a PDF
Re:Show HN: Ready-to-use API to convert any web page to PDF ...
by zulln on Saturday November 04, 2017 @06:10AM
(#15624411)
Did not mean to sound negative, but what is the use-case of saving web pages as PDFs? I understand building in the functionality in something else, but here it sounds like you manually type/paste in URLs on a regular basis.
Edit, I see now that I replied to the wrong comment. It was meant to they who made an alias to it.