HTML to PDF in Node.js Without the Puppeteer Pain
javascript
dev.to
If you've ever had to generate a PDF from HTML in Node.js, you know the story. You reach for Puppeteer. The docs look reasonable. Then, three hours later, you're debugging a segfault in a Docker container because Chromium refuses to run without --no-sandbox, your CSS isn't rendering the same as it does in the browser, and your server's memory has ballooned to 800MB handling a single request. This is not a Puppeteer bash post. Puppeteer is a solid project. The problem is that running a full bro