Tickets share many structural features with receipts — header, details, machine-readable code — but they are usually shorter, denser, and often include security-oriented QR error-correction settings so the code remains scannable even if the paper is slightly crumpled. The examples below cover three common ticket categories: event admission, queue management, and parking.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/luis3132/tauri-plugin-thermal-printer/llms.txt
Use this file to discover all available pages before exploring further.
All examples target 80 mm (
Mm80) paper (48 chars/line). If you switch to 58
mm (Mm58, 32 chars/line) you must recalculate every column_widths array so
the widths still sum to 32.Event Ticket (80 mm)
An event admission ticket with a seat-assignment table, owner information, important instructions, a QR code at level H (30 % recovery — ideal for ticketing where the code may be photographed or printed at lower quality), and a CODE128 barcode for gate scanners.Queue / Turn Ticket (58 mm)
A queue-management ticket for a service counter. It displays the turn number prominently in double size, the service name, estimated wait, and a QR code. A singleBeep signals the operator that the ticket has been dispensed.
Parking Ticket (80 mm)
A vehicle entry ticket with entry timestamp, vehicle plate, level/zone, a tariff table, and a CODE128 barcode that the exit gate scanner reads to compute the fee.Choosing a Paper Size for Tickets
Mm40 / Mm44
21–24 chars/line. Handheld queue dispensers and compact kiosk printers.
Keep tables to 2 columns maximum.
Mm58
32 chars/line. Most common for portable and Bluetooth printers. Good for
turn tickets and short parking stubs.
Mm80
48 chars/line. Standard desktop POS printers. Enough room for 3-column
tables, large QR codes, and barcodes side by side.