A Boarding Pass

A boarding pass is read by a machine at a gate, by a person at a desk, and by a passenger holding a bag in the other hand. All three have to find what they need on the same small rectangle, in a second, which is why the layout is as tight and as boxed as it is. The one that matters most is the machine, and it is the least forgiving of the three.

The QR code is not decoration. It carries the one line the boarding gates of the world agreed to read: the name, the booking reference, the two airports, the airline, the flight, the day of the year, the class, the seat, the check-in number and the passenger's standing — each in its own place, each of a fixed width, padded with blanks when it falls short. One character out of place and the gate does not argue, it simply refuses the pass.

What This Example Shows

  • The one line the gates read, each detail written at the place set aside for it.
  • That string carried as a QR code, the way a boarding pass on a phone carries it.
  • A perforation rule and a stub that repeats the flight details.

The Source Code, Complete

Nothing is left out and nothing is simplified: this is the program exactly as it runs, for the developer who uses this library. The third is the description itself: a plain list of what the page has to say, which is what the service is sent.

Read the Rust source Read the Python source Read the JSON source

The Document Itself

Open the document in English Open the document in French Open the document in German Open the document in Spanish Open the document in Italian Open the document in Portuguese

A Boarding Pass, first page

The Same Document in Other Languages

This document weighs 17.9 kB

Examples Near This One

A Commercial Invoice

An invoice: each billed line follows the one before, the totals sit under the last, and the QR code holds the transfer. The customer points a telephone at it, and the banking app offers the exact sum into the exact account, with nothing retyped.

A Delivery Note

The note that travels with the goods: a barcode against each article, a box the receiver ticks, and the consignment's own code.

A Payslip

A payslip: eighteen contribution lines, with the employee's share and the employer's, and for each the month's amount then the total since January. Each figure is tied to the line and the column it stands under, for software that reads the page aloud.

A Landscape Certificate

A certificate whose border, ribbon and seal are drawn as lines rather than photographed: sharp at any size, and a fraction of the weight.

A Sheet of Shelf Labels

Fifteen shelf labels on one pre-cut sheet, each with its price and its scannable code, and trim marks in the margins. Six numbers describe the paper.

Every example, by subject