We ended up using a service like yakpdf, for HTML to PDF generation. It handled most of the rendering issues out of the box compared to headless browser setups.
yakpdf can handle HTML/URL to PDF conversion through an API without dealing with browser setup or headless tools.
[flagged]
Puppeteer and Playwright are the main open-source options nowadays, both solid for HTML → PDF once your print CSS is sorted. Don’t forget proper page breaks (break-before/after/inside) — e.g. break-after: page works in…
We ended up using a service like yakpdf, for HTML to PDF generation. It handled most of the rendering issues out of the box compared to headless browser setups.
yakpdf can handle HTML/URL to PDF conversion through an API without dealing with browser setup or headless tools.
[flagged]
Puppeteer and Playwright are the main open-source options nowadays, both solid for HTML → PDF once your print CSS is sorted. Don’t forget proper page breaks (break-before/after/inside) — e.g. break-after: page works in…