Print HTML to an A4 PDF with headless Chrome and the DevTools Protocol in about 60 lines of Node.js, no packages: the script, the CSS and four things that go wrong.
HTML to PDF with headless Chrome and Node.js, without Puppeteer
calendar_today
November 10, 2026
domain
signops