A boarding pass

A boarding pass carrying the IATA BCBP string a gate scanner reads.

An airline boarding pass: the passenger and their flight, the route, the times, the seat, a detachable stub down the side, and the code the gate reads. The layout is the tight, boxed kind a counter printer turns out; here it is drawn at whatever size the page leaves it.

The code is not decoration. It carries an IATA Resolution 792 bar coded boarding pass: one fixed-width line beginning M1 for a single leg, every field at its appointed offset — the name, the booking reference, the two airports, the carrier, the flight, the Julian day, the compartment, the seat, the check-in sequence and the passenger status.

What this example shows

  • A fixed-width IATA BCBP string built field by field at its offset.
  • That string carried as a QR code, the way a boarding pass on a telephone carries it.
  • A perforation rule and a stub that repeats the flight details.

The code, in full

The same document is written twice, once in each language. Both files are shown in full, with the code coloured on the server, and can be copied in one click.

The document itself

The same document is written in each of these languages. Open the one you want to look at.

Open the document in English Open the document in French

Read the Rust source Read the Python source

First page of A boarding pass

What this document weighs

Before 114,813 bytes
Now 44,643 bytes
Saved 61.1 %

Not one mark on the page changed. See every document measured.

Examples near this one

A commercial invoice

A commercial invoice: letterhead, logo, a billed-lines table, totals, and a QR code that pays it by SEPA transfer.

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 employee and employer shares, the month against the year to date.

A landscape certificate

A landscape certificate whose border and seal are drawn line by line rather than placed as pictures.

Every example, by subject

Glossary

QR Code
The square of black and white dots you point a telephone at: on a poster, on a restaurant table, at the foot of a bill. It carries a web address, or the exact details of a payment, so nobody has to type anything in. On an invoice it turns paying into one tap.