Skip to main content

Ferry Vehicle Boarding Card

The card a ferry check-in booth hands through the car window, to hang from the rear-view mirror until the vehicle is parked on board. It is read from across a quay, so the loading lane is the largest thing on it.

  • A mirror hanger. A dashed die-cut circle with its slit, and "hang from mirror · this side out" set on an arc beneath it.
  • The lane in 150pt figures. On a yellow block with a hazard edge, beside the deck and the vehicle category with a drawing of the vehicle.
  • The sailing. Ports, day, date and vessel, then check-in closing time in red beside departure and arrival.
  • The vehicle. The registration in a drawn plate, the lead passenger, the party and their lounge seats.
  • A tear-off coupon. Behind a microprinted perforation, the check-in booth keeps the lane, the booking, the registration and a QR code; the driver keeps the hanger and its Code 128.
  • Archival and accessible. It claims PDF/A-2a and PDF/UA-1.

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

How it's built​

The legend around the die-cut is a textPath on the lower half of a circle, centred on it:

{ "textPath": { "d": "M 102.5 40 A 38 38 0 0 0 178.5 40", "text": "HANG FROM MIRROR · THIS SIDE OUT", "textAnchor": "middle", "startOffset": "50%", "style": "fbHang" } }

The hazard edge is a row of the same parallelogram every 18 points, and the car is one g, scaled into its tile:

{ "g": { "translate": [222, 198], "scale": [0.48, 0.48], "children": [
{ "path": { "d": "M2 22 Q2 15 9 14 L17 13 L25 4 Q27 2 31 2 L52 2 Q56 2 58 4 L66 13 L74 15 Q79 16 79 22 L79 27 Q79 29 77 29 L4 29 Q2 29 2 27 Z", "style": "fbGlass" } }
] } }

The lane, the deck and the category come from the booking, so a van on lane 2 or a coach on the lower deck is a different data file, not a different card.

Ferry Boarding Card Sheet​

Two cars travelling together on one booking, their two boarding cards printed side by side on one Letter sheet. Each card is the card above bound to its own vehicle.

  • One component, two vehicles. ferry-boarding-card is placed once per record of $data.vehicles; the cards share the sailing and the booking reference and differ in the lane, the deck, the registration, the vehicle category, the lead passenger, the party, the seats and the barcode.
  • The art behind each card. The hanger, the bands, the hazard edge and the tear line are page watermarks, one per card, each centred on its card by spacing; each tear line's microprint names its own car.
  • A line to cut along. The cut-line component, turned upright, runs between the two cards.
  • Archival and accessible. PDF/A-2a and PDF/UA-1, like the single card.

How the sheet is built​

The two cards are a grid of two columns, each placement naming its vehicle by its place in $data.vehicles:

{
"columns": {
"widths": ["281pt", "281pt"],
"gap": 18,
"rows": [
[{ "use": { "name": "ferry-boarding-card", "params": { "lane": "$data.vehicles.0.boarding.lane", "registration": "$data.vehicles.0.vehicle.registration", "reference": "$data.booking.reference", "departs": "$data.sailing.departs" } } }],
[{ "use": { "name": "ferry-boarding-card", "params": { "lane": "$data.vehicles.1.boarding.lane", "registration": "$data.vehicles.1.vehicle.registration", "reference": "$data.booking.reference", "departs": "$data.sailing.departs" } } }]
]
}
}

The cut line, the same component as on every sheet, turned upright in the gap between the cards:

{
"g": {
"translate": [311, 108],
"rotate": 90,
"children": [{ "use": { "name": "cut-line", "x": 0, "y": 0, "width": 576, "height": 10 } }]
}
}