Receipts are the most common thermal-printer output. A well-structured receipt combines a store header, an itemised table, totals, payment details, and an optional QR code — all within the 48-character line width of standard 80 mm paper. The examples below show two production-ready receipt layouts that you can drop straight into your Tauri application.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.
On 80 mm (
Mm80) paper the printer exposes 48 characters per line. Every Table that sets explicit column_widths must have widths that sum to exactly 48, or the backend will throw a column_widths sum (N) must equal paper chars_per_line (48) error.Supermarket Receipt (80 mm)
A full shopping receipt with store header, cashier info, itemised product table, tax breakdown, payment details, a QR code, and a CODE128 barcode. The builder-helper style (title(), text(), line(), etc.) keeps the section array readable at a glance.
Payment Receipt (80 mm)
A bank-transfer confirmation receipt showing sender/receiver account details, transaction amount, concept, fees, and a status line. This is a common output for POS terminals and teller windows.Paper Size Notes
80 mm (Mm80) — Default
48 characters per line, 576 px wide. Best for full POS receipts with tables
and barcodes. All column widths in a table must sum to 48.
58 mm (Mm58) — Compact
32 characters per line, 384 px wide. Typical for portable/handheld printers.
Column widths must sum to 32 for this paper size.
When you omit
column_widths from a Table section the backend distributes
columns evenly. Specifying widths explicitly is recommended for receipts where
right-alignment of prices must be precise.