Dev Tools · 2h ago
Fill PDF Forms in Cloudflare Workers Without Chrome or Lambda
A developer shows how to fill AcroForm PDFs directly in Cloudflare Workers using a hosted API, avoiding headless Chrome or a separate Lambda. The Worker fetches a template from R2, calls /api/fill-form, and returns the filled PDF in ~35 lines. This eliminates cold starts and cross-region latency by keeping the entire workflow on Cloudflare's edge.
Meridian48 take
The approach is clever but relies on a third-party API (pdfops.dev), which introduces a dependency and potential cost; self-hosting the fill logic would be more robust.
Read the full reporting
Fill a PDF form inside a Cloudflare Worker — no Chromium, no Lambda →
DEV Community
cloudflare-workerspdf-generation