Airline Boarding Pass
The boarding pass an airline's departure control prints at check-in, on the 8 × 3.25 in card a gate reader takes. The passenger keeps the stub on the right; the gate agent keeps the rest.
- The route at a glance. The two airport codes in condensed display figures, the cities above them, a dotted flight
path between, and departure and arrival times underneath, the arrival marked
+1when it lands the next day. - What the gate checks. Flight, date, boarding time, gate and zone in the printer's fixed-pitch type, the seat reversed out of a navy block, repeated on the stub.
- The IATA bar coded boarding pass. A PDF417 carrying the 60-character mandatory BCBP record a gate reader decodes: format, name, PNR, the airport pair, carrier, flight, the day of the year, cabin, seat and check-in sequence.
- A microprinted tear line. Along both sides of the perforation, the airline, flight, route, name and PNR in 2.2pt capitals, set along a path and taken from the booking.
- Archival and accessible. It claims PDF/A-2a and PDF/UA-1: the pass is a heading, and the PDF417 names what it holds.
Features used: PDF/A-2a, PDF/UA-1 conformance, watermarks, columns, SVG, barcodes (pdf417), data binding, components
- Output
- Template
- Data
How it's built
The card stock - the navy band, the guilloche waves, the airline's swept mark and the seat blocks - is one svg drawn behind the page as a watermark. Every value then stands where the printer puts it, as a fixed paragraph:
{
"p": "[span, bpLabel]GATE[/span][br]$data.flight.gate",
"style": "bpGate"
}
The barcode is the BCBP record exactly as a check-in system sends it, padded to its fixed widths:
// airline-boarding-pass.data.json, in part
{
"pass": { "bcbp": "M1DESMARAIS/LUC MR EK7QX4D YULCDGAQ 0418 073Y023A0042 100" }
}
{ "barcode": { "x": 0, "y": 0, "width": 206, "height": 46, "spec": { "type": "pdf417", "code": "$data.pass.bcbp" } } }
The microprint is a textPath along each side of the tear line, its text the booking's own fields:
{ "textPath": { "d": "M 425 228 L 425 6", "text": "[caps]$data.airline.name · $data.flight.number · $data.pass.pnr[/caps]", "textAnchor": "middle", "startOffset": "50%", "style": "bpMicro" } }
Airline Boarding Pass Sheet
A delegation's boarding passes, printed on one Letter sheet: three colleagues flying into Paris for one summit, from Montréal, Lagos and Tokyo. Each card is the pass above bound to its own record.
- One component, three travellers.
boarding-passis placed once per record of$data.passes; the records share the airline and the destination and differ in everything else: the passenger and their frequent-flyer tier, the origin, the flight, the times, the gate, the seat and zone, the cabin, the fare and the booking. - The cabin in its colours. Each record names its cabin's tone - economy, premium or business - and the pass and its card take it: the seat's filled box, the accent rule and the cabin's name turn navy and amber, teal and silver, or burgundy and gold.
- Composed of fields. The pass is built from parts that take their values as parameters:
boarding-pass-airportfor each end of the route,boarding-pass-fieldfor every label over a value - thirteen on a card, in three sizes and two inks - andboarding-pass-stubfor the tear-off stub. - A bar coded boarding pass per passenger. Each card's PDF417 carries its own passenger's IATA string, and the card's
microprint, drawn behind it by
boarding-pass-art, names that passenger and the booking. - A line to cut along. The
cut-linecomponent runs edge to edge in the 26pt gap under each card.
- Output
- Template
- Data
How the sheet is built
Each ticket is one record of $data.passes, a table row per record, its parameters read from the row's own $item:
{
"table": {
"style": "passSheet",
"widths": [1],
"source": "$data.passes",
"rows": [[{
"style": "passSlot",
"columns": { "widths": [1], "rows": [[{ "use": { "name": "boarding-pass", "params": { "passenger": "$item.passenger.name", "seat": "$item.seat.number", "cabin": "$item.flight.cabin", "tone": "$item.flight.tone", "barcode": "$item.pass.bcbp" } } }]] }
}]]
}
}
The cut line, one component placed in each gap from the page's top:
{
"use": { "name": "cut-line", "x": 0, "y": 254, "width": 576, "height": 10 }
}