Back to feed
Dev.to
Dev.to
6/30/2026
The original title is: "Fill a PDF form inside a Cloudflare Worker — no Chromium, no Lambda"

The original title is: "Fill a PDF form inside a Cloudflare Worker — no Chromium, no Lambda"

Original: Fill a PDF form inside a Cloudflare Worker — no Chromium, no Lambda

Short summary

Cloudflare Workers can't run headless Chrome or Lambda due to V8 isolate constraints, but PDF form-filling is pure byte manipulation—a perfect fit for a stateless Worker-to-endpoint call. By routing to a globally-distributed service like PDFops instead of spinning up a Lambda, you avoid infrastructure drag, cold starts, and trans-Pacific detours. Includes production-ready code and testing guidance.

  • PDF form-filling (AcroForm) is byte manipulation, not rendering—doesn't need Chrome or Lambda
  • Cloudflare Workers run in V8 isolates without OS access, making headless browsers infeasible
  • Delegate to a stateless hosted endpoint (PDFops) to keep edge speed and avoid infrastructure complexity

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more