pdforge
API Reference
API Reference
  • Getting started
    • Overview
    • Authentication
    • Rate limit
  • PDFs from templates
    • Asynchronous request
    • Synchronous request
  • Html to pdf conversion
    • Asynchronous request
    • Synchronous request
  • OPTIONS
    • How render PNG instead of PDF
    • Storage Options (s3)
    • PDF Params
Powered by GitBook
On this page
  • Setting Up S3 Storage
  • Configuration Options
  1. OPTIONS

Storage Options (s3)

If you’re on the High plan, you can customize where your generated PDF or PNG files are stored by connecting your own S3 bucket.

PreviousHow render PNG instead of PDFNextPDF Params

Last updated 1 month ago

Setting Up S3 Storage

You're on the High plan and want to store your files in a custom S3 bucket?

We’ve got a full guide on how to set up S3 connections and switch the default bucket directly from the dashboard. .

Configuration Options

s3_bucket

Set this to the ID of an active S3 connection to override the default storage location.

s3_key

default: pdforge/{}/

Define the path (folders and filename, without extension) where your file will be saved inside your S3 bucket.

Don’t include the file extension — we’ll handle that based on the file type (e.g., .pdf, .png).

Here's a request example for a synchronous render:

curl --location 'https://api.pdforge.com/v1/pdf/sync' \
--header 'Authorization: Bearer pdforge_api_123456789' \
--header 'Content-Type: application/json' \
--data '{
    "templateId": "template_id",
    "s3_bucket": "s3_123456789",
    "s3_key": "path/to/your/file",
    "data":{
            "currentDDate": "01/12/2025",
            "user": {
                    "name":"John Doe",
                    "email": "john.doe@email.com"
            },
            "details": [{"score":"100", "description":"high score"}]
    }
}
'

Check out the guide