New feature Merge multiple templates into a single PDF read the documentation 

Back to template library

Dynamic PDF Template

Created to replicate the essential design of an airline's ticket, this template captures all vital travel information.

Embark on a seamless journey with our boarding pass template. Key features include spaces for passenger's name, flight number, departure and arrival cities, class, seat assignment, and boarding time. This template isn't just limited to air travel; it can be adapted for trains, buses, or any other mode of transportation requiring a ticketing system. Whether you're a travel agency looking to provide a sample boarding pass, hosting a themed event, or crafting a unique gift or invitation, this template can be customized to fit your needs. With a crisp and clear layout, it's designed to provide all necessary details while ensuring a professional and realistic look.

Dynamic PDF API

Dynamic Data Integration

Each of our template comes with a set of dynamic data that you can customize to your needs.

Here is the list of the default data with their type and example:

Name Type Example
ticket_number string ABC00345746
flight_number string GI3451
date string 2023-08-03
qrcode string 3391654880234792
from string New York, NY
to string Los Angeles, CA
class string 1
seat_number string 007
name string Roselyn Wolff
phone string (555) 555-6789
age string 32
gender string F
{
    "data": {
        "ticket_number": "ABC00345746",
        "flight_number": "GI3451",
        "date": "2023-08-03",
        "qrcode": "3391654880234792",
        "from": "New York, NY",
        "to": "Los Angeles, CA",
        "class": "1",
        "seat_number": "007",
        "name": "Roselyn Wolff",
        "phone": "(555) 555-6789",
        "age": "32",
        "gender": "F"
    }
}
curl -X POST "https://pdf-api.io/api/templates/{templateId}/pdf" \
    -H "Content-Type: application/json" \
    -H "Accept: application/pdf" \
    -H "Authorization: Bearer {token}"
    -d '{
    "data": {
        "ticket_number": "ABC00345746",
        "flight_number": "GI3451",
        "date": "2023-08-03",
        "qrcode": "3391654880234792",
        "from": "New York, NY",
        "to": "Los Angeles, CA",
        "class": "1",
        "seat_number": "007",
        "name": "Roselyn Wolff",
        "phone": "(555) 555-6789",
        "age": "32",
        "gender": "F"
    }
}'