Save every generated PDF to Cloudflare R2
DocSpring's S3 integration works with Cloudflare R2. Every PDF it generates is copied into your R2 bucket, organized the way you choose.
What you can do with Cloudflare R2
Uploads
- Every PDF, automatically
- Each PDF is uploaded as soon as it's generated, including combined PDFs.
- Your own file paths
- Build each path from the template, the date, and your own metadata, for example a folder for each client.
- Choose which PDFs
- Upload live PDFs, test PDFs or both, and limit uploads to specific API tokens.
Access and status
- An R2 API token
- Connect with the access key of an R2 API token that can write to your bucket.
- Upload status and alerts
- Each PDF shows whether its upload is done or failed, and DocSpring emails you if uploads keep failing.
Set up the Cloudflare R2 integration
Read the setup guide- In Cloudflare, create an R2 API token that can write to your bucket, and copy its access key ID and secret.
- In DocSpring, open Integrations, choose Set up Cloudflare R2, and enter your account's R2 endpoint, your bucket's name and the access key.
- Set the file path and choose which PDFs to upload.
- Generate a PDF and check that it appears in your bucket.
Example workflows
An archive you control
Keep a copy of every generated and signed document in your own Cloudflare account.
No egress fees
Download your documents as often as you need. Cloudflare doesn't charge for data leaving R2.
Start your own processing
Use R2 event notifications to run a Cloudflare Worker when a new PDF arrives.
Try DocSpring with Cloudflare R2
Upload a PDF or a Word document, design a page, or write HTML, then connect Cloudflare R2. No credit card needed.

