PDF tickets

PDFs are rendered with the bundled dompdf library from templates/ticket-pdf.php, using the bundled DM Sans and Playfair Display fonts. No external request is made.

  • Files are cached in uploads/mymentech-qr-tickets/pdf/CODE-hash/Event-Name-Ticket-CODE.pdf. The hash changes whenever the ticket data changes, so stale PDFs are never served; old folders are removed when a new one is written.
  • dompdf’s temp and font cache directories are inside uploads/mymentech-qr-tickets/, so the plugin folder is never written to.
  • The download button appears on the ticket page, in the email card and on the thank-you / My Account cards. Attachment to emails can be switched off separately.