Template Gallery
Templates for repeatable documents
Use prebuilt templates for invoices, receipts, and business documents. Send JSON data, validate required fields, and render HTML previews or production PDFs in seconds.
- Mustache variables - Replace placeholders with your JSON payload.
- Output modes - Render PDF or HTML for live previews.
- PDF options - Control format, margins, and orientation.
- Premium catalog - Unlock premium layouts on paid plans.
Template flow
4 steps01
Pick a template
Invoices, receipts, and branded layouts.
02
Send JSON data
Required fields are validated on render.
03
Render HTML or PDF
Preview with HTML or download PDF.
04
Ship documents
Save the PDF and deliver it to users.
Sample payload
{
"data": { "invoice_number": "INV-204" },
"format": "pdf",
"pdfOptions": { "format": "A4" }
}0
Templates
PDF + HTML
Output types
Mustache + JSON
Variables
A4 / Letter / Legal
Page sizes
Filter templates:
Quick Start
Render any template with a single API call. Replace the template slug and provide your data. For previews, set format to html.
1. Get your API key
Register for free to get your API key. Free tier includes 50 credits/month.
2. Render a template
Send a POST request with your data and receive a PDF in response.
Language:
curl -X POST "https://api.pdfengine.io/v1/templates/invoice-modern-minimal/render" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": {
"company_name": "Your Company",
"invoice_number": "INV-001",
"invoice_date": "2024-01-22",
"due_date": "2024-02-22",
"customer_name": "Client Name",
"items": [
{
"description": "Service",
"quantity": 1,
"unit_price": "100.00",
"total": "100.00"
}
],
"subtotal": "100.00",
"tax": "8.00",
"total": "108.00"
},
"format": "pdf"
}' \
--output invoice.pdfReady to generate documents?
Start with 50 free credits. No credit card required.