To generate a PDF with Playwright on a Firefox engine you cannot use page.pdf(): it is Chromium-only and raises on Firefox. Use one of two routes that do run on Firefox - a full-page screenshot ...