[{"data":1,"prerenderedAt":722},["Reactive",2],{"/alternatives/cloudflare":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"dateModified":10,"author":11,"faq":12,"body":19,"_type":717,"_id":718,"_source":719,"_file":720,"_extension":721},"/alternatives/cloudflare","alternatives",false,"","Cloudflare Browser Rendering alternative for PDFs","PDFShift adds passwords, watermarks, S3 or webhook delivery and HIPAA to a PDF request, and a Cloudflare Worker calls it with one fetch. Our test inside.","2026-11-16","Cyril Nicodème",[13,16],{"question":14,"answer":15},"Is Cloudflare Browser Rendering free?","Yes, on Workers Free, within 10 minutes of browser time a day. That's about 2,400 renders of our 3-page test invoice. Past that you get a 429 until the next UTC day.",{"question":17,"answer":18},"What are Cloudflare Browser Rendering's limits?","Workers Free allows one /pdf request every 10 seconds, Workers Paid 30 a second. The page load waits 30 seconds by default, 60 at most, and the PDF step 30 seconds by default, 5 minutes at most.",{"type":20,"children":21,"toc":704},"root",[22,30,37,39,226,232,245,257,280,286,291,311,324,346,352,354,623,628,634,668,674,680,684,689,693],{"type":23,"tag":24,"props":25,"children":26},"element","p",{},[27],{"type":28,"value":29},"text","Keep your Worker and hand the PDF to us. Your Worker sends the HTML in one fetch and gets the PDF back, and that same request can add a password or a watermark, put a copy in your S3 bucket, or run in HIPAA mode. Cloudflare Browser Run, the new name for Browser Rendering, doesn't list any of those in its /pdf docs.",{"type":23,"tag":31,"props":32,"children":34},"h2",{"id":33},"what-goes-in-a-pdfshift-request-that-pdf-doesnt-list",[35],{"type":28,"value":36},"What goes in a PDFShift request that /pdf doesn't list",{"type":28,"value":38},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":23,"tag":40,"props":41,"children":42},"table",{},[43,65],{"type":23,"tag":44,"props":45,"children":46},"thead",{},[47],{"type":23,"tag":48,"props":49,"children":50},"tr",{},[51,55,60],{"type":23,"tag":52,"props":53,"children":54},"th",{},[],{"type":23,"tag":52,"props":56,"children":57},{},[58],{"type":28,"value":59},"PDFShift",{"type":23,"tag":52,"props":61,"children":62},{},[63],{"type":28,"value":64},"Browser Run /pdf",{"type":23,"tag":66,"props":67,"children":68},"tbody",{},[69,95,119,151,182,208],{"type":23,"tag":48,"props":70,"children":71},{},[72,78,90],{"type":23,"tag":73,"props":74,"children":75},"td",{},[76],{"type":28,"value":77},"Password and permissions",{"type":23,"tag":73,"props":79,"children":80},{},[81,88],{"type":23,"tag":82,"props":83,"children":85},"code",{"className":84},[],[86],{"type":28,"value":87},"protection",{"type":28,"value":89},": user and owner passwords, no print, no copy, no modify",{"type":23,"tag":73,"props":91,"children":92},{},[93],{"type":28,"value":94},"Not listed on the /pdf docs (November 2026)",{"type":23,"tag":48,"props":96,"children":97},{},[98,103,114],{"type":23,"tag":73,"props":99,"children":100},{},[101],{"type":28,"value":102},"Watermark",{"type":23,"tag":73,"props":104,"children":105},{},[106,112],{"type":23,"tag":82,"props":107,"children":109},{"className":108},[],[110],{"type":28,"value":111},"watermark",{"type":28,"value":113},", as text or an image",{"type":23,"tag":73,"props":115,"children":116},{},[117],{"type":28,"value":118},"Not listed on the /pdf docs",{"type":23,"tag":48,"props":120,"children":121},{},[122,127,146],{"type":23,"tag":73,"props":123,"children":124},{},[125],{"type":28,"value":126},"Where the PDF goes",{"type":23,"tag":73,"props":128,"children":129},{},[130,132,138,140],{"type":28,"value":131},"In the response, to your S3 bucket (",{"type":23,"tag":82,"props":133,"children":135},{"className":134},[],[136],{"type":28,"value":137},"s3_destination",{"type":28,"value":139},"), or to a ",{"type":23,"tag":82,"props":141,"children":143},{"className":142},[],[144],{"type":28,"value":145},"webhook",{"type":23,"tag":73,"props":147,"children":148},{},[149],{"type":28,"value":150},"In the response. Cloudflare doesn't keep it beyond a short cache, 5 seconds by default",{"type":23,"tag":48,"props":152,"children":153},{},[154,159,177],{"type":23,"tag":73,"props":155,"children":156},{},[157],{"type":28,"value":158},"HIPAA",{"type":23,"tag":73,"props":160,"children":161},{},[162,168,170],{"type":23,"tag":82,"props":163,"children":165},{"className":164},[],[166],{"type":28,"value":167},"is_hipaa: true",{"type":28,"value":169},", with a ",{"type":23,"tag":171,"props":172,"children":174},"a",{"href":173},"/legal/hipaa/",[175],{"type":28,"value":176},"BAA",{"type":23,"tag":73,"props":178,"children":179},{},[180],{"type":28,"value":181},"Not listed on the Browser Run docs",{"type":23,"tag":48,"props":183,"children":184},{},[185,190,203],{"type":23,"tag":73,"props":186,"children":187},{},[188],{"type":28,"value":189},"Chrome version",{"type":23,"tag":73,"props":191,"children":192},{},[193,195,201],{"type":28,"value":194},"Pin one with the ",{"type":23,"tag":82,"props":196,"children":198},{"className":197},[],[199],{"type":28,"value":200},"X-Processor-Version",{"type":28,"value":202}," header",{"type":23,"tag":73,"props":204,"children":205},{},[206],{"type":28,"value":207},"Chrome 152 in our test. The user agent changes when Cloudflare updates Chrome, and no pin is documented",{"type":23,"tag":48,"props":209,"children":210},{},[211,216,221],{"type":23,"tag":73,"props":212,"children":213},{},[214],{"type":28,"value":215},"Where it runs",{"type":23,"tag":73,"props":217,"children":218},{},[219],{"type":28,"value":220},"OVH in Gravelines and Strasbourg, France",{"type":23,"tag":73,"props":222,"children":223},{},[224],{"type":28,"value":225},"Cloudflare's global network, with no region named on the Browser Run docs",{"type":23,"tag":31,"props":227,"children":229},{"id":228},"calling-pdfshift-from-a-worker",[230],{"type":28,"value":231},"Calling PDFShift from a Worker",{"type":23,"tag":24,"props":233,"children":234},{},[235,237,243],{"type":28,"value":236},"Swap the ",{"type":23,"tag":82,"props":238,"children":240},{"className":239},[],[241],{"type":28,"value":242},"env.BROWSER",{"type":28,"value":244}," call for a fetch to PDFShift:",{"type":23,"tag":246,"props":247,"children":252},"pre",{"className":248,"code":250,"language":251,"meta":7},[249],"language-js","// A Cloudflare Worker that makes the invoice PDF with PDFShift instead of env.BROWSER.\n// Set the key once with: npx wrangler secret put PDFSHIFT_API_KEY\nexport default {\n  async fetch(request, env) {\n    const html = await request.text();\n    const res = await fetch(\"https://api.pdfshift.io/v3/convert/pdf\", {\n      method: \"POST\",\n      headers: {\n        \"X-API-Key\": env.PDFSHIFT_API_KEY,\n        \"Content-Type\": \"application/json\",\n      },\n      body: JSON.stringify({\n        source: html,\n        format: \"A4\",\n        use_print: true,\n        margin: { top: \"0px\", bottom: \"0px\", left: \"30px\", right: \"30px\" },\n        header: {\n          source: '\u003Cdiv style=\"font-size:10px;text-align:center\">Company Name | {{date}} | {{title}}\u003C/div>',\n          height: \"100px\",\n        },\n        footer: {\n          source: '\u003Cdiv style=\"font-size:10px;text-align:center\">Page {{page}} of {{total}}\u003C/div>',\n          height: \"80px\",\n        },\n      }),\n    });\n    if (!res.ok) {\n      return new Response(await res.text(), { status: res.status });\n    }\n    return new Response(res.body, { headers: { \"Content-Type\": \"application/pdf\" } });\n  },\n};\n","js",[253],{"type":23,"tag":82,"props":254,"children":255},{"__ignoreMap":7},[256],{"type":28,"value":250},{"type":23,"tag":24,"props":258,"children":259},{},[260,262,268,270,278],{"type":28,"value":261},"We ran this handler under Node 26 with its built-in ",{"type":23,"tag":82,"props":263,"children":265},{"className":264},[],[266],{"type":28,"value":267},"fetch",{"type":28,"value":269},", and it returned our 3-page invoice. The ",{"type":23,"tag":171,"props":271,"children":275},{"href":272,"rel":273},"https://docs.pdfshift.io/api-reference/convert-to-pdf",[274],"nofollow",[276],{"type":28,"value":277},"API reference",{"type":28,"value":279}," lists every parameter.",{"type":23,"tag":31,"props":281,"children":283},{"id":282},"same-invoice-same-pages-different-bills",[284],{"type":28,"value":285},"Same invoice, same pages, different bills",{"type":23,"tag":24,"props":287,"children":288},{},[289],{"type":28,"value":290},"On November 16, 2026, we took the header-and-footer example from Cloudflare's /pdf docs and swapped its URL for a 75-row invoice. We sent the same invoice, header, footer and A4 size to PDFShift. Both PDFs came back with 3 pages, the same 33 rows on page 1, and the header and \"Page N of 3\" on every page.",{"type":23,"tag":292,"props":293,"children":294},"figure",{},[295,305],{"type":23,"tag":296,"props":297,"children":304},"img",{"src":298,"width":299,"height":300,"alt":301,"loading":302,"style":303},"/images/alternatives/cloudflare-pdfshift-same-invoice.png",1536,693,"Three full A4 pages of the same invoice side by side, each with a Company Name header line and a Page 1 of 3 footer. The left and middle pages fit rows 1 to 33. The right page has a wide blank band under its header and fits rows 1 to 26. The left and right pages carry a small Created via PDFShift box at the top right.","lazy","width:100%;height:auto",[],{"type":23,"tag":306,"props":307,"children":308},"figcaption",{},[309],{"type":28,"value":310},"Page 1 of the same invoice. Left: PDFShift with margin top and bottom at 0 and the header and footer heights set to Cloudflare's margins. Middle: Browser Run /pdf with Cloudflare's example options. Right: PDFShift with Cloudflare's margins copied as they are, which leaves a blank band. The box at the top right marks a test call made without an API key. Our test, November 16, 2026.",{"type":23,"tag":24,"props":312,"children":313},{},[314,316,322],{"type":28,"value":315},"We charge per document, not per second: one credit covers a PDF up to 5 MB, 50 a month are free, and paid plans start at $9 for 500 (all plans are on our ",{"type":23,"tag":171,"props":317,"children":319},{"href":318},"/pricing/",[320],{"type":28,"value":321},"pricing page",{"type":28,"value":323},").",{"type":23,"tag":24,"props":325,"children":326},{},[327,329,336,338,344],{"type":28,"value":328},"Browser Run charges for browser time. Over five renders it reported 204 to 412 ms, 245 ms at the median. At ",{"type":23,"tag":171,"props":330,"children":333},{"href":331,"rel":332},"https://developers.cloudflare.com/browser-run/pricing/",[274],[334],{"type":28,"value":335},"Cloudflare's list prices",{"type":28,"value":337},", that's about 147,000 renders of this invoice inside the 10 browser hours Workers Paid includes for its $5 monthly minimum, then $0.09 an hour, or about $0.006 per 1,000 renders. A page that loads web fonts, images or a whole URL keeps the browser open longer, and each response's ",{"type":23,"tag":82,"props":339,"children":341},{"className":340},[],[342],{"type":28,"value":343},"X-Browser-Ms-Used",{"type":28,"value":345}," header gives your own number.",{"type":23,"tag":31,"props":347,"children":349},{"id":348},"headers-footers-and-margins-when-you-port",[350],{"type":28,"value":351},"Headers, footers and margins when you port",{"type":28,"value":353},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":23,"tag":40,"props":355,"children":356},{},[357,371],{"type":23,"tag":44,"props":358,"children":359},{},[360],{"type":23,"tag":48,"props":361,"children":362},{},[363,367],{"type":23,"tag":52,"props":364,"children":365},{},[366],{"type":28,"value":64},{"type":23,"tag":52,"props":368,"children":369},{},[370],{"type":28,"value":59},{"type":23,"tag":66,"props":372,"children":373},{},[374,405,426,447,556,579,602],{"type":23,"tag":48,"props":375,"children":376},{},[377,394],{"type":23,"tag":73,"props":378,"children":379},{},[380,386,388],{"type":23,"tag":82,"props":381,"children":383},{"className":382},[],[384],{"type":28,"value":385},"url",{"type":28,"value":387}," or ",{"type":23,"tag":82,"props":389,"children":391},{"className":390},[],[392],{"type":28,"value":393},"html",{"type":23,"tag":73,"props":395,"children":396},{},[397,403],{"type":23,"tag":82,"props":398,"children":400},{"className":399},[],[401],{"type":28,"value":402},"source",{"type":28,"value":404},", which takes either",{"type":23,"tag":48,"props":406,"children":407},{},[408,417],{"type":23,"tag":73,"props":409,"children":410},{},[411],{"type":23,"tag":82,"props":412,"children":414},{"className":413},[],[415],{"type":28,"value":416},"pdfOptions.format",{"type":23,"tag":73,"props":418,"children":419},{},[420],{"type":23,"tag":82,"props":421,"children":423},{"className":422},[],[424],{"type":28,"value":425},"format",{"type":23,"tag":48,"props":427,"children":428},{},[429,438],{"type":23,"tag":73,"props":430,"children":431},{},[432],{"type":23,"tag":82,"props":433,"children":435},{"className":434},[],[436],{"type":28,"value":437},"pdfOptions.margin",{"type":23,"tag":73,"props":439,"children":440},{},[441],{"type":23,"tag":82,"props":442,"children":444},{"className":443},[],[445],{"type":28,"value":446},"margin",{"type":23,"tag":48,"props":448,"children":449},{},[450,496],{"type":23,"tag":73,"props":451,"children":452},{},[453,459,461,467,469,475,476,482,483,489,490],{"type":23,"tag":82,"props":454,"children":456},{"className":455},[],[457],{"type":28,"value":458},"headerTemplate",{"type":28,"value":460},", ",{"type":23,"tag":82,"props":462,"children":464},{"className":463},[],[465],{"type":28,"value":466},"footerTemplate",{"type":28,"value":468}," with the classes ",{"type":23,"tag":82,"props":470,"children":472},{"className":471},[],[473],{"type":28,"value":474},"date",{"type":28,"value":460},{"type":23,"tag":82,"props":477,"children":479},{"className":478},[],[480],{"type":28,"value":481},"title",{"type":28,"value":460},{"type":23,"tag":82,"props":484,"children":486},{"className":485},[],[487],{"type":28,"value":488},"pageNumber",{"type":28,"value":460},{"type":23,"tag":82,"props":491,"children":493},{"className":492},[],[494],{"type":28,"value":495},"totalPages",{"type":23,"tag":73,"props":497,"children":498},{},[499,505,507,513,515,520,521,527,529,535,536,542,543,549,550],{"type":23,"tag":82,"props":500,"children":502},{"className":501},[],[503],{"type":28,"value":504},"header",{"type":28,"value":506}," and ",{"type":23,"tag":82,"props":508,"children":510},{"className":509},[],[511],{"type":28,"value":512},"footer",{"type":28,"value":514}," objects with ",{"type":23,"tag":82,"props":516,"children":518},{"className":517},[],[519],{"type":28,"value":402},{"type":28,"value":506},{"type":23,"tag":82,"props":522,"children":524},{"className":523},[],[525],{"type":28,"value":526},"height",{"type":28,"value":528},", and ",{"type":23,"tag":82,"props":530,"children":532},{"className":531},[],[533],{"type":28,"value":534},"{{date}}",{"type":28,"value":460},{"type":23,"tag":82,"props":537,"children":539},{"className":538},[],[540],{"type":28,"value":541},"{{title}}",{"type":28,"value":460},{"type":23,"tag":82,"props":544,"children":546},{"className":545},[],[547],{"type":28,"value":548},"{{page}}",{"type":28,"value":460},{"type":23,"tag":82,"props":551,"children":553},{"className":552},[],[554],{"type":28,"value":555},"{{total}}",{"type":23,"tag":48,"props":557,"children":558},{},[559,568],{"type":23,"tag":73,"props":560,"children":561},{},[562],{"type":23,"tag":82,"props":563,"children":565},{"className":564},[],[566],{"type":28,"value":567},"gotoOptions.waitUntil: \"networkidle0\"",{"type":23,"tag":73,"props":569,"children":570},{},[571,577],{"type":23,"tag":82,"props":572,"children":574},{"className":573},[],[575],{"type":28,"value":576},"wait_for_network",{"type":28,"value":578},", on by default",{"type":23,"tag":48,"props":580,"children":581},{},[582,591],{"type":23,"tag":73,"props":583,"children":584},{},[585],{"type":23,"tag":82,"props":586,"children":588},{"className":587},[],[589],{"type":28,"value":590},"waitForSelector",{"type":23,"tag":73,"props":592,"children":593},{},[594,600],{"type":23,"tag":82,"props":595,"children":597},{"className":596},[],[598],{"type":28,"value":599},"wait_for",{"type":28,"value":601},", which takes the name of a global function, not a CSS selector",{"type":23,"tag":48,"props":603,"children":604},{},[605,614],{"type":23,"tag":73,"props":606,"children":607},{},[608],{"type":23,"tag":82,"props":609,"children":611},{"className":610},[],[612],{"type":28,"value":613},"addStyleTag",{"type":23,"tag":73,"props":615,"children":616},{},[617],{"type":23,"tag":82,"props":618,"children":620},{"className":619},[],[621],{"type":28,"value":622},"css",{"type":23,"tag":24,"props":624,"children":625},{},[626],{"type":28,"value":627},"On PDFShift, the header and footer heights add to the margins. Copy Cloudflare's 100 px top and 80 px bottom margins along with the header and footer, and you get the blank band in the right-hand page above. Set the top and bottom margins to 0 and put those numbers in the header and footer heights instead.",{"type":23,"tag":31,"props":629,"children":631},{"id":630},"other-cloudflare-browser-rendering-alternatives",[632],{"type":28,"value":633},"Other Cloudflare Browser Rendering alternatives",{"type":23,"tag":24,"props":635,"children":636},{},[637,639,645,646,652,653,659,660,666],{"type":28,"value":638},"Hosted browsers you control with Puppeteer or Playwright: Browserless, Apify and Playwright Cloud. Hosted HTML-to-PDF APIs: DocRaptor, PDFCrowd, Api2Pdf and PDFMonkey. Running Chromium yourself: Puppeteer or Gotenberg. We compare PDFShift with ",{"type":23,"tag":171,"props":640,"children":642},{"href":641},"/alternatives/docraptor/",[643],{"type":28,"value":644},"DocRaptor",{"type":28,"value":460},{"type":23,"tag":171,"props":647,"children":649},{"href":648},"/alternatives/pdfmonkey/",[650],{"type":28,"value":651},"PDFMonkey",{"type":28,"value":460},{"type":23,"tag":171,"props":654,"children":656},{"href":655},"/alternatives/puppeteer/",[657],{"type":28,"value":658},"Puppeteer",{"type":28,"value":506},{"type":23,"tag":171,"props":661,"children":663},{"href":662},"/alternatives/gotenberg/",[664],{"type":28,"value":665},"Gotenberg",{"type":28,"value":667}," on their own pages.",{"type":23,"tag":31,"props":669,"children":671},{"id":670},"frequently-asked-questions",[672],{"type":28,"value":673},"Frequently asked questions",{"type":23,"tag":675,"props":676,"children":678},"h3",{"id":677},"is-cloudflare-browser-rendering-free",[679],{"type":28,"value":14},{"type":23,"tag":24,"props":681,"children":682},{},[683],{"type":28,"value":15},{"type":23,"tag":675,"props":685,"children":687},{"id":686},"what-are-cloudflare-browser-renderings-limits",[688],{"type":28,"value":17},{"type":23,"tag":24,"props":690,"children":691},{},[692],{"type":28,"value":18},{"type":23,"tag":24,"props":694,"children":695},{},[696,702],{"type":23,"tag":171,"props":697,"children":699},{"href":698},"/register/",[700],{"type":28,"value":701},"Get a free API key",{"type":28,"value":703},": 50 credits a month, no card.",{"title":7,"searchDepth":705,"depth":705,"links":706},2,[707,708,709,710,711,712],{"id":33,"depth":705,"text":36},{"id":228,"depth":705,"text":231},{"id":282,"depth":705,"text":285},{"id":348,"depth":705,"text":351},{"id":630,"depth":705,"text":633},{"id":670,"depth":705,"text":673,"children":713},[714,716],{"id":677,"depth":715,"text":14},3,{"id":686,"depth":715,"text":17},"markdown","content:alternatives:cloudflare.md","content","alternatives/cloudflare.md","md",1794909483871]