Skip to main content

Transit Day Ticket

A day ticket for a city's metro, tram and bus network, the size of a bank card, as a ticket machine issues it. The front is printed when it is sold and stamped when it is first validated; the back carries the magnetic stripe a gate reads.

  • The network as the stock. The four lines drawn as a metro map across the card, in pale ink under the text, with their stops and interchanges.
  • A foil patch. A disc filled with a rainbow gradient, two white rings, the operator's initial and a ring of 2.6pt microtext that closes on itself: what a holographic foil looks like in print.
  • The validator's imprint. The date, time, station, gate and device number of the first validation, in a dashed box.
  • A Data Matrix for the gate's optical reader, carrying the product, zones, fare class, date, serial and price.
  • Two sides. The back is a section of its own: a magnetic stripe, the network's name tiled in microtext, an arrow saying which way the card goes in, and the conditions of use.
  • Archival and accessible. It claims PDF/A-2a and PDF/UA-1.

Features used: PDF/A-2a, PDF/UA-1 conformance, watermarks, columns, tables, SVG, barcodes (datamatrix), data binding, components

How it's built​

The card is two components, each over its own art: transit-day-ticket over transit-day-ticket-art for the front, and transit-day-ticket-back over transit-day-ticket-back-art for the back. Every block of each side sits at its place inside the card's own box, so a page holds one card or a sheet of them. The back is a section break whose watermark is the back's art, the operator's name tiled inside the card:

{
"break": "section",
"watermarks": [
{ "scope": "page", "repeat": false, "content": { "use": { "name": "transit-day-ticket-back-art", "params": { "operatorName": "$data.operator.name" } } } }
]
}

The ring of microtext is a textPath on a full circle. Its letterSpacing is worked out from the face so the text closes exactly once around the 12.6pt radius:

{ "textPath": { "d": "M 207 88.6 A 12.6 12.6 0 1 1 207.01 88.6", "text": "VERDANIA CITY TRANSIT · GENUINE TICKET · ", "style": "tdFoilText" } }

The foil itself is a style with a seven-stop linear gradient, laid on a circle.

Transit Day Ticket Sheet​

A school group's day out: eight day tickets on one Letter sheet, two adults and six children, the fronts on the first page and the backs on the second. Each card is the ticket above bound to its own record.

  • One design, eight cards. The front and the back components are placed once per ticket, each with that record's fare class, price, serial, gate code and stock; the operator, the zones and the day are the group's.
  • Each card's own validation. The group went through the gates at Central together, so each card's imprint is its own record's: the time to the minute and the gate, G3 or G4, with its device number.
  • Backs behind their fronts. The second page holds the backs in the same places with each row's two cards swapped, so a sheet printed on both sides and flipped on the long edge puts every back behind its own front.
  • The tile on each card. The operator's name is tiled inside each card's art, not across the page, so the white between the cards stays white.
  • Lines to cut along. The cut-line component runs edge to edge in the gap under each row, and a dashed rule runs between the columns, under the cut lines' labels.
  • Archival and accessible. PDF/A-2a and PDF/UA-1, like the single ticket.

How the sheet is built​

The fronts are two columns of four cards, each card in a slot of its height with the gap under it, and each placement names its ticket by its place in $data.tickets:

{
"columns": {
"widths": ["243pt", "243pt"],
"gap": 18,
"rows": [
[{ "columns": { "style": "tdSlot", "widths": [1], "rows": [[{ "use": { "name": "transit-day-ticket", "params": { "fareClass": "$data.tickets.0.fareClass", "price": "$data.tickets.0.price", "serial": "$data.tickets.0.serial", "imprint": "$data.tickets.0.imprint" } } }]] } }],
[{ "columns": { "style": "tdSlot", "widths": [1], "rows": [[{ "use": { "name": "transit-day-ticket", "params": { "fareClass": "$data.tickets.1.fareClass", "price": "$data.tickets.1.price", "serial": "$data.tickets.1.serial", "imprint": "$data.tickets.1.imprint" } } }]] } }]
]
}
}

On the second page each row names its two tickets the other way round, so each back lands behind its front:

{
"columns": {
"widths": ["243pt", "243pt"],
"gap": 18,
"rows": [
[{ "use": { "name": "transit-day-ticket-back", "params": { "stock": "$data.tickets.1.stock" } } }],
[{ "use": { "name": "transit-day-ticket-back", "params": { "stock": "$data.tickets.0.stock" } } }]
]
}
}