All Templates

Event Ticket Template

200 x 85 mm

A custom ticket-sized PDF with the event details, a perforated stub, an attendee name, and a barcode rendered in pure CSS. Generate a unique PDF ticket per attendee through the API.

Preview of the Event Ticket template rendered as a PDF

The exact PDF the API produces. What you preview is what you generate.

Generate with the API

Use this template, publish it to get a template id, then call the API with your data. Replace YOUR_TEMPLATE_ID and YOUR_API_KEY with your own.

curl -X POST https://api.pdfglyph.dev/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "YOUR_TEMPLATE_ID",
    "data": {
      "eventName": "Frontend Conf 2026",
      "eventDate": "Saturday, September 19, 2026",
      "eventTime": "9:00 AM",
      "venue": "Pier 27, San Francisco",
      "section": "GA",
      "seat": "A-114",
      "gate": "North",
      "ticketType": "General Admission",
      "attendeeName": "Dana Whitfield",
      "orderNumber": "ORD-7F3K-2291"
    }
  }' \
  --output document.pdf

Sample Data

The JSON this preview was rendered from. Match these fields, or edit the template to fit the data you already have.

{
  "eventName": "Frontend Conf 2026",
  "eventDate": "Saturday, September 19, 2026",
  "eventTime": "9:00 AM",
  "venue": "Pier 27, San Francisco",
  "section": "GA",
  "seat": "A-114",
  "gate": "North",
  "ticketType": "General Admission",
  "attendeeName": "Dana Whitfield",
  "orderNumber": "ORD-7F3K-2291"
}

Start with the Event Ticket Template

Open it in the editor as a new draft, customize the HTML and styling, then generate PDFs on demand through the API.