REST API for
PDF Generation

Simple HTTP API. Send JSON, get a PDF URL. Works with any language. Official SDKs for TypeScript, Python, Go, PHP, Ruby, Java, and C#.

Your Code
→
TemplateFox
→
PDF

Use the language you love

Send simple HTTP requests or use native libraries for your language of choice.

npm install @templatefox/sdk
1// npm install @templatefox/sdk23import { TemplateFox } from "@templatefox/sdk";45const client = new TemplateFox({6  apiKey: "your-api-key",7});89const result = await client.pdf.generate({10  templateId: "your-template-id",11  data: {12    name: "John Doe",13    amount: "$1,500.00",14    date: "January 15, 2025",15  },16});1718console.log(result.pdfUrl);19// https://cdn.templatefox.com/...
Precision Engineering
PDF template example - Packing Slip
1
2
3
4

Built for real-world documents

Everything you need to create professional business documents, from invoices to packing slips.

1

Headers & footers that just work

Define once, repeat on every page automatically. Perfect for logos, page numbers, and legal mentions.

2

Dynamic data binding

Inject any data into your templates. Names, addresses, prices, etc. — everything updates automatically.

3

Tables that grow with your data

Rows grow automatically with your data. 3 items or 300, the table adapts and spans multiple pages if needed.

4

Built-in QR codes & barcodes

Generated on the fly from your data. Supports Code128, EAN-13, QR codes and more — all scanner-ready.

Try it free

60 free PDFs & images/month

Easy to use

Documents that adapt to your data

Go beyond simple placeholders. Use expressions to format, calculate, and control your content.

1

Use system variables

Access page numbers, total pages, and current date and more automatically with {{sys.page_number}} and friends.

2

Customize every component

Fine-tune content, borders, colors, sizes, positions, and more. Each element has its own properties panel.

3

Built-in functions

Format dates, calculate totals, round numbers, and more. Use 100+ built-in functions or create your own.

Start building

No credit card required

Template editor with expressions
1
2
3
Cloud storage

Built-in S3 Integration

Save your generated PDFs directly to Amazon S3 or any S3-compatible storage (Cloudflare R2, MinIO, DigitalOcean Spaces). Just add your S3 credentials to the API request.

Learn how to bring your own storage

Is the REST API right for you?

The REST API gives you full control. Here's how to decide.

Recommended

Use REST API if you need:

  • Full control over API integration
  • Any programming language or platform
  • Production applications at scale
  • Custom authentication and error handling

Or consider:

SDKs
  • • Type-safe development
  • • Faster implementation
No-Code Tools
  • • No coding required
  • • Visual workflow builders

Automate your PDF generation

Complete documentation, no-code integrations, and a powerful API to help you generate PDFs at scale. Let us handle the boring stuff.