Skip to main content
cloudflare.renderPdf prints a rendered page to PDF through Cloudflare Browser Run.
automations/render-cloudflare-pdf.automation.ts

Inputs

Provide accountId and exactly one of url or html. pdfOptions controls paper format or dimensions, scale, orientation, margins, page ranges, backgrounds, CSS page sizing, headers, footers, outline, tagging, and PDF timeout. Cloudflare defaults to letter paper, scale 1, a 30-second PDF timeout, and tagged output. cacheTtl defaults to 5 seconds, and the common Browser Run page controls are available.

Output

Returns the PDF as an application/pdf Blob. The action consumes Browser Run duration and is not replay-safe.