Blog
Practical fixes for generating PDFs from HTML with Chrome, Puppeteer and Playwright.
- How to repeat table headers on every page in a Chrome PDF
You generate a PDF from HTML with Puppeteer or Playwright, and a long table spills onto page two. The header row is gone, a row is sliced in half at the page ed
- "Page X of Y" in Puppeteer and Playwright PDFs, and why the footer looks wrong
Both Puppeteer and Playwright can stamp page numbers on a PDF. Almost everyone's first attempt comes out microscopic, unstyled or missing entirely. Here's why,
- Running headers and a table of contents in Chrome PDFs with Paged.js and Playwright
Chrome's PDF output doesn't implement CSS paged media: @page margin boxes, counter(pages), string-set running headers, target-counter() for page references. Pag