PDF Generation API for Developers
Integrate PDF generation into your application. Authenticate with an API key, send your data, get a PDF back — in the language of your choice.
Start here
Section titled “Start here”Every integration starts the same way: design a template, grab your API key, then call the API.
Get Started in 5 Minutes
Design your first template, preview it with test data, and grab your API key from the dashboard.
Template Designer
Learn the drag-and-drop editor — pages, sections, tables, dynamic variables, expressions.
The designer packs a lot: pages and sections, tables, components, styling, data binding, expressions, barcodes & QR codes, and system variables. Take a few minutes to poke around before wiring up the API.
Core endpoints
Section titled “Core endpoints”Both PDF generation flows share the same template and data model — pick the one that fits your workflow.
Create PDF
Synchronous. POST your data, get a signed URL back within seconds. Best for on-demand requests.
Create PDF (Async)
Queue the job and receive a webhook when the PDF is ready. Best for large documents or batches.
Full API Reference
Every endpoint: templates, account, S3 integration, jobs. Auth, error codes, rate limits.
Official SDKs
Section titled “Official SDKs”Drop-in clients for the most common languages. All SDKs are auto-generated from the same OpenAPI spec and published on their native package registries. Each page shows both SDK and raw REST examples side-by-side.
npm install @templatefox/sdk
pip install templatefox
go get github.com/TemplateFoxPDF/gosdk
Maven & Gradle packages available.
composer require templatefox/sdk
gem install templatefox
dotnet add package TemplateFox.SDK
Any language
Call the REST API directly via HTTP.
Advanced
Section titled “Advanced”Async & webhooks
Queue heavy jobs, get notified by HMAC-signed webhook when the PDF is ready.
Upload to S3
Push generated PDFs straight to your own S3 bucket — no extra round trip.
MCP Server
Let AI agents like Claude or Cursor generate PDFs on behalf of your users.
Guides
Section titled “Guides”- Data Binding — Pass dynamic data into your templates
- Expressions — Arithmetic, aggregates, filters, conditionals
- Barcodes & QR Codes — Generate barcodes dynamically
- System Variables — Built-in variables like date and page numbers
- PDF Standards — PDF/A and compliance information
- Postman Collection — Test every endpoint interactively