html-to-pdf-regression
Installation
SKILL.md
html-to-pdf-regression
Different HTML→PDF engines produce different output for the same
input - fonts embed differently, @page support varies, page-break
algorithms differ. Tests verify the chosen engine produces the
expected output AND (optionally) that two engines agree on the
critical pages.
When to use
- Migrating from one engine to another (wkhtmltopdf → Chromium, wkhtmltopdf → WeasyPrint).
- Multi-engine production (different products use different engines; templates shared).
- Regression after engine version upgrade (Chromium revs change PDF output; WeasyPrint major versions break layout subtly).