PDF Tickets and Invoices
ProRequires Events Manager Pro. Compare plans
Events Manager Pro can produce two PDF documents for a booking and attach them to the confirmation email:
- Tickets: a booking summary followed by one ticket per space booked, each with the event, date, location, ticket name and, if you use them, a QR code for check-in.
- Invoice: your business details, the customer's billing details, an invoice number, and the price breakdown with discounts, taxes and total.
PDFs are generated on your own server when they are needed. Nothing is sent to an outside service.
Turn on PDFs
-
Go to Events then Settings then Bookings then Printables (PDFs, Invoices, Tickets etc.).
-
Set Enable PDFs? to Yes and click Save Changes. The font options appear only after this first save.
-
Choose which documents to attach with Include Invoices in Emails? and Include Tickets in Emails? Both are Yes by default.
-
Add your Logo and fill in Business Details Text, then save again.
PDF settings: what to attach, and what goes in the document header.
PDF settings
| Setting | Default | What it does |
|---|---|---|
| Enable PDFs? | No | Switches PDF tickets and invoices on. |
| Default Font | DejaVu Sans | The typeface used throughout both documents. See Fonts and languages. |
| Enable Font Subsetting? | No | Embeds only the characters a document uses, which makes files much smaller when the font covers many scripts. The PDF becomes harder to edit in other software. |
| Include Invoices in Emails? | Yes | Attaches the invoice to the confirmation email. |
| Include Tickets in Emails? | Yes | Attaches the tickets to the confirmation email. |
| Invoice Number Format | EVENT-#_BOOKINGID | The invoice number printed on the invoice and used in its file name. Accepts booking placeholders, so MB-#_BOOKINGID gives MB-1042. |
| Logo | Your site logo, if the theme had one when Pro was installed | The image at the top of both documents. |
| Alternate Logo Text | Your site title | Shown as the heading when no logo is set. |
| Billing Details Text | The booker's name and address fields, one per line | The customer block on the invoice. Uses placeholders for booking form fields, so it follows whatever your form collects. HTML is accepted and line breaks are kept. |
| Business Details Text | empty | Your name, address, tax number and anything else an invoice must show in your country. Appears on invoices and tickets. HTML is accepted and line breaks are kept. |
When PDFs are sent
PDFs are attached to the email the booker receives when their booking is Approved: the confirmed booking email. They are not attached to pending, awaiting payment, canceled or rejected emails, and not to the emails you receive as the site owner.
So on a site that approves bookings by hand, or takes offline payments, the tickets go out when you approve the booking, not when it is made. If you resend the confirmation email from the booking, the PDFs are generated again and attached.
Attachment file names are fixed: Invoice - followed by the invoice number, and Tickets - followed by the event name and start date.
There is no download link for attendees on the site in Pro 3.10. They receive their PDFs by email.
Download a PDF yourself
Open a booking from Events then Bookings. With PDFs enabled, the booking's page has two buttons, View/Print Invoice and View/Print Tickets. Each opens a small menu:
- Download (PDF) produces the document as the attendee would receive it.
- View HTML opens the same document as a web page, which is quicker for checking your logo and details while you set things up.
Download either document for any booking you can manage.
You can download for a booking in any status, for example to hand a ticket to someone whose confirmation email went astray.
What the documents contain
Tickets
The first page is titled Booking Tickets, with your logo and business details, the booking date, an Event Details block (event, when, where and address) and a summary of the tickets and spaces booked.
Then comes one ticket for each space. A ticket shows the event's featured image, the weekday, date and year, the event name, the times, the venue name and address, and the ticket name. If your attendee form collects a name for each attendee, the ticket carries that person's name. With Enable QR Codes? on in the Ticket Scanning settings, each ticket has its own QR code.
For online and hybrid events, a ticket shows what that ticket gives access to: the venue for in-person tickets, a Join online link for online tickets, or both.
Invoice
Titled Booking Invoice, with the invoice number and booking date, your business details and the customer's billing details, the Event Details block, and a table of each ticket with its quantity and price. Below that are the Sub Total, any discounts such as coupons, surcharges, Taxes with the rate, and the Total Price.
The invoice shows the price of the booking. It does not show which payments have been received.
Fonts and languages
The default font, DejaVu Sans, covers most European scripts. If your event names or attendee names use a script it lacks, such as Chinese, Japanese or Korean, those characters come out as empty boxes until you add a font that has them.
-
Copy the folder
events-manager-pro/templates/printables/fontsfrom the plugin, as a whole folder, to one of these locations so that you end up with afontsfolder inside aprintablesfolder:wp-content/plugin-templates/events-manager-pro/printables/wp-content/themes/your-theme/plugins/events-manager-pro/printables/
-
Put your
.ttfor.otffont files in that newfontsfolder. -
Go to Events then Settings then Bookings then Printables (PDFs, Invoices, Tickets etc.). Under Default Font, click Regenerate Fonts List. The link is shown to site administrators once the folder exists.
-
Choose the new font in Default Font and save.
Fonts with large character sets make large PDFs. Set Enable Font Subsetting? to Yes to keep email attachments small.
Change the layout
The documents are built from template files in events-manager-pro/templates/printables/. To change the layout, copy the file you want to alter into wp-content/themes/your-theme/plugins/events-manager-pro/printables/, keeping its sub-folder, and edit the copy. See template files.
| Template | Controls |
|---|---|
pdf-booking/pdf-booking.php and the part-*.php files beside it | The tickets document: header, event details, summary and the individual tickets |
pdf-invoice/pdf-invoice.php and the part-*.php files beside it | The invoice |
pdf-part-logo.php, pdf-part-header-addresses.php, pdf-part-event-details.php | Pieces shared by both documents |
pdf-booking/pdf-booking.css, pdf-invoice/pdf-invoice.css, pdf-printable.css | Styling |
The page size is A4. The PDF renderer supports a subset of CSS, so test layout changes with View HTML and then with Download (PDF).
With Multiple Bookings Mode
In Multiple Bookings Mode one checkout can cover several events:
- The confirmation email carries one invoice for the whole order and a separate tickets PDF for each event booked.
- In wp-admin, View/Print Invoice is on the order as a whole, and View/Print Tickets is on each event's booking within it.
Troubleshooting
The confirmation email arrives without attachments
Check that Enable PDFs? and the two Include ... in Emails? settings are Yes, and that the booking is Approved: other statuses send no PDFs. If downloading the PDF from wp-admin fails too, look in your PHP error log: building a PDF needs more memory than an ordinary page, and a host with a low memory limit can stop it.
Names or event titles show as empty boxes
The chosen font lacks those characters. Add a font that covers your language, as described in Fonts and languages.
The logo is missing
Choose the logo again with Choose/Upload Image so that it comes from your media library. Images hosted on another domain may not load into the PDF.
There is no QR code on the tickets
Set Enable QR Codes? to Yes in Events then Settings then Bookings then Ticket Scanning and Frontend Management. See Check-in and attendance.