From Dev.to
HTML to PDF with headless Chrome in Node.js, without Puppeteer
You can turn any HTML into a print-ready PDF with headless Chrome and about 60 lines of Node.js, no Puppeteer and no npm packages: start Chrome with a debugging port, open its WebSocket, and send two...
