Generating PDFs Part 2: HTML to PDF with Playwright, Reading and Merging PDFs and Which Approach When
Turn a document the designer built in HTML and CSS into a PDF with Playwright's headless Chromium: share the browser, open a context per document, turn JavaScript off and allow only your own fonts. Bookstore's institutional quote takes 38 milliseconds per document; merging and reading use PdfPig, because PDFsharp moved to the AGPL with 6.5.0.
15 Nov 2026
·
12 min
·
9