PDF
events
A6
Event Ticket
Printable event admission ticket with event name, ticket holder, ticket type, date, time, venue, and ticket number. Includes a placeholder area for a QR code image.
Use Cases
- Conference admission tickets
- Workshop seat confirmation
- Fundraiser event tickets
- Private party invitations
Tags
ticket
event
admission
conference
printable
qr-code
a6
Template Variables
| Variable | Type | Default | Description |
|---|---|---|---|
| event_name | string | Tech Conference 2026 | Event name |
| ticket_holder | string | Jane Smith | Ticket holder name |
| ticket_type | string | General Admission | Ticket tier or type |
| event_date | string | 15 June 2026 | Event date |
| event_time | string | 09:00 – 18:00 | Event time |
| venue | string | City Convention Centre, Hall B | Venue name and location |
| ticket_number | string | #00001 | Ticket serial number |
| qr_code_url | url | URL of a QR code image (leave blank to show placeholder box) | |
| logo_url | url | Event logo URL | |
| accent_color | color | #0f172a | Accent colour |
API Example
POST to
https://pdf.toolkitapi.io/v1/pdf/from-template
with your template URL and variable values.
curl -X POST "https://pdf.toolkitapi.io/v1/pdf/from-template" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"template_url": "https://toolkitapi.io/static/templates/pdf/ticket.html", "variables": {"event_name": "Tech Conference 2026", "ticket_holder": "Jane Smith", "ticket_type": "General Admission", "event_date": "15 June 2026", "event_time": "09:00 \u00e2\u20ac\u201c 18:00", "venue": "City Convention Centre, Hall B", "ticket_number": "#00001", "qr_code_url": "", "logo_url": "", "accent_color": "#0f172a"}, "page_size": "A6"}'
import httpx, base64
resp = httpx.post(
"https://pdf.toolkitapi.io/v1/pdf/from-template",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"template_url": "https://toolkitapi.io/static/templates/pdf/ticket.html",
"variables": {
"event_name": "Tech Conference 2026",
"ticket_holder": "Jane Smith",
"ticket_type": "General Admission",
"event_date": "15 June 2026",
"event_time": "09:00 \u00e2\u20ac\u201c 18:00",
"venue": "City Convention Centre, Hall B",
"ticket_number": "#00001",
"qr_code_url": "",
"logo_url": "",
"accent_color": "#0f172a"
},
"page_size": "A6"
},
)
pdf_bytes = base64.b64decode(resp.json()["pdf"])
with open("result.pdf", "wb") as f:
f.write(pdf_bytes)
const response = await fetch("https://pdf.toolkitapi.io/v1/pdf/from-template", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"template_url": "https://toolkitapi.io/static/templates/pdf/ticket.html",
"variables": {
"event_name": "Tech Conference 2026",
"ticket_holder": "Jane Smith",
"ticket_type": "General Admission",
"event_date": "15 June 2026",
"event_time": "09:00 \u00e2\u20ac\u201c 18:00",
"venue": "City Convention Centre, Hall B",
"ticket_number": "#00001",
"qr_code_url": "",
"logo_url": "",
"accent_color": "#0f172a"
},
"page_size": "A6"
}),
});
const data = await response.json();
// data.pdf is a base64-encoded PDF
$body = @{
template_url = "https://toolkitapi.io/static/templates/pdf/ticket.html"
variables = {
"event_name": "Tech Conference 2026",
"ticket_holder": "Jane Smith",
"ticket_type": "General Admission",
"event_date": "15 June 2026",
"event_time": "09:00 \u00e2\u20ac\u201c 18:00",
"venue": "City Convention Centre, Hall B",
"ticket_number": "#00001",
"qr_code_url": "",
"logo_url": "",
"accent_color": "#0f172a"
}
page_size = "A6"
} | ConvertTo-Json -Depth 5
Invoke-RestMethod -Method POST `
-Uri "https://pdf.toolkitapi.io/v1/pdf/from-template" `
-Headers @{"X-API-Key" = "YOUR_API_KEY"} `
-ContentType "application/json" `
-Body $body