← Back to blog

Event Ticket PDF Generator with QR Codes, Seats, and Check-In

People searching for ticket PDF generator, electronic ticket PDF, QR code ticket usually need more than a temporary export. They need a document workflow that can handle real data, stable layouts, and continuing delivery.

An electronic ticket must work with the sales system, a phone screen, a printer, and entrance scanners. People need clear session and seat details, while software must quickly determine validity and prior use.

This guide is for event organizers, conferences, attractions, theaters, sports events, booking platforms, and teams issuing scannable credentials automatically. The goal is to generate a unique ticket PDF from order and session data, deliver a safe validation token, and connect issue, resend, transfer, and check-in states, producing event tickets, conference passes, reservation credentials, seating tickets, parking passes, vouchers, and QR-enabled digital admission documents while making every accepted file traceable to defined data and a template version.

1. What Makes This PDF Workflow Difficult?

A QR code can be screenshotted, email can be sent twice, and session or seating can change. PDF is only the carrier. Duplicate entry is prevented by server-side token status, atomic redemption, and clear reissue rules.

2. Define Fields and Data Boundaries First

Document at least the following values before designing the page:

3. Implementation Workflow from Business Data to PDF

Step 1: Define issue, transfer, cancellation, reissue, and check-in states

Turn “define issue, transfer, cancellation, reissue, and check-in states” into an executable rule with a data owner, approver, and exception owner. For event tickets, conference passes, reservation credentials, seating tickets, parking passes, vouchers, and QR-enabled digital admission documents, explicit responsibility at this stage prevents later template rework.

Step 2: Create an unguessable and revocable validation token for every ticket

When teams create an unguessable and revocable validation token for every ticket, record the selection criteria and preserve one representative fixture. Future template or endpoint revisions can then be assessed against the same rationale.

Step 3: Design event, session, seat, entrance, and QR hierarchy

For “design event, session, seat, entrance, and QR hierarchy,” prepare normal, empty, maximum-length, and largest-array data so the page is tested against realistic boundaries rather than a convenient demo.

Step 4: Generate one or several tickets per order and retain the ticket map

While teams generate one or several tickets per order and retain the ticket map, attach a business reference, timeout, and explicit failure branch to the request. Mark the action complete only after the returned file passes acceptance.

Step 5: Test phone display, print, and entrance scanning before delivery

Acceptance for “test phone display, print, and entrance scanning before delivery” must go beyond page one on a monitor. Inspect printing, page breaks, fonts, barcodes, or interactive states relevant to the use case.

Step 6: Redeem atomically on the server and record device and time

Complete the workflow with “redeem atomically on the server and record device and time” by retaining the business ID, template version, generation time, page count, and checksum for resend and audit.

4. Three Design Decisions to Make Early

1. Ticket number or token in the QR code

Do not encode only a sequential ticket number. Use an opaque random token or signed value and let the validation service retrieve actual status.

2. How one order with several tickets is delivered

Give every attendee a unique ticket_id and QR code. Combine pages or deliver separate files according to transfer and entrance behavior.

3. Whether reissue changes the QR code

If the prior ticket may be exposed, revoke its token and issue a new version. A simple resend to the same account can reuse the accepted file.

5. Implementing the Workflow with KeepMot

KeepMot generates square QR codes, Code 128, ticket identifiers, background images, seat text, terms, and custom ticket dimensions. The Template API can render one page per data record and combine an order.

For ticket PDF generator, maintain the visual template in KeepMot Studio and send only template_id plus business data through the Template API. Use JSON Render when software owns the full layout, or HTML to PDF when the source is an established web asset. The template catalog provides starting points.

6. Production Acceptance Checklist

  1. ticket and order have a unique relationship. Retain source-system reconciliation as evidence.
  2. session, seat, and entrance are correct. Retain a page or print sample as evidence.
  3. QR dimensions and quiet zone are sufficient. Retain the boundary-data result as evidence.
  4. phone and printed samples both scan. Retain response status and file signature as evidence.
  5. cancel or reissue state invalidates the old ticket. Retain template version and checksum as evidence.
  6. check-in prevents concurrent duplicate redemption. Retain a resend or replay record as evidence.

7. Common Risks and Corrections

Risk 1: Encoding only a guessable sequential ticket number

“encoding only a guessable sequential ticket number” makes an initially flexible implementation expensive to maintain. Prevent that state directly in the data contract or release workflow.

Risk 2: Reusing one token for several attendees

When reusing one token for several attendees, the final page may still appear plausible. Compare the source record, critical identifiers, and actual output together.

Risk 3: Allowing a logo to enter the QR quiet zone

The problem of allowing a logo to enter the QR quiet zone often appears only at a boundary. Preserve the trigger as a regression fixture and return a clear error when safe generation is impossible.

Risk 4: Making duplicate emails appear to be several valid tickets

The risk of making duplicate emails appear to be several valid tickets can become a delivery, privacy, or operational incident. Minimize sensitive-value exposure and retain necessary audit facts without logging secrets.

Risk 5: Checking then updating nonatomically and allowing simultaneous reuse

For checking then updating nonatomically and allowing simultaneous reuse, first classify the fault as data, layout, delivery, or version related, then define correction, retry, revocation, or resend behavior.

8. Batching, Performance, and Daily Operations

Generate large-event batches early and sample real scans. Entrance peaks depend on the validation service rather than last-minute PDF creation. Preserve ticket version and token state, and process transfer and reissue through the state machine.

9. Frequently Asked Questions

Q: What should be inside the QR code? A: Use an opaque verification token or short validation URL rather than a name, price, or internal secret.

Q: Can one order create several tickets? A: Yes. Use one data object per attendee and render independent pages that may be combined or delivered separately.

Q: Can a screenshot be used more than once? A: A static PDF cannot prevent that alone. The validation service must atomically mark the token used at first scan.

Q: Can a ticket be printed? A: Yes, after testing physical dimensions, contrast, and quiet zones on representative printers.

Q: What if the seat changes? A: Invalidate or supersede the old version, issue a revision with the new seat, and make validation show current data.

Q: Should I use QR Code or Code 128? A: QR suits phones and verification URLs. Code 128 suits shorter identifiers and dedicated scanners. Let entrance hardware decide.

10. Conclusion

A dependable electronic ticket combines a unique page, secure token, live status, and atomic redemption. The attractive PDF is only the visible layer.