📄 HTML‑to‑PDF Module v2 — Now Playwright Powered (Puppeteer finally stopped screaming)

Quick update for anyone using my HTML‑to‑PDF Server Connect module.

I’ve pushed out version 2.0.0, and the big change is this:

:tada: Puppeteer has been replaced with Playwright

Why?
Because Puppeteer kept throwing tantrums about missing libraries every time someone looked at a Linux server the wrong way. Playwright, on the other hand, actually shows up to work.

:warning: One important thing

Playwright doesn’t install its browser automatically, so you’ll need to run:

npx playwright install --with-deps chromium

If you skip this step, the module will politely inform you that it cannot find a browser and refuse to generate PDFs. Fair enough.

:check_mark: What’s better now

  • More reliable PDF generation
  • Better CSS page size support
  • Cleaner header/footer handling
  • Less “libnss3.so is missing” drama
  • Works nicely in Docker, Podman, and Wappler Node targets

You can install the updated version via Extensions → Extension Manager.

If you run into anything odd, let me know — preferably before I switch it to WebKit just for fun.

@benpley/wappler-html2pdf - npm

3 Likes

npx? Thats a new one i will have to research!

1 Like

Here is a how-to video using the extension: