Shipping Manifest
A carrier's linehaul run manifest — the document that travels with the trailer from the origin terminal to the receiving one.
- Route, equipment and seals up top. Origin and destination terminals with doors, windows and appointment; tractor, trailer, seals and reefer unit; and a scannable GS1-128 run code for every terminal gate, above the driver, licence, dispatcher and hours of service.
- A barcode on every shipment. A table driven by
sourcewhere each PRO renders its own GS1-128 from data, with shipper, consignee, service, pieces, weight, class and handling flags. - Run totals. Shipments, pieces and weight, with the linear feet and cube used.
- Dangerous goods and reefer. A dangerous-goods record with a placard callout, UN number, shipping name, packing group and load position, and the reefer setpoint, monitoring and the shipments it affects.
- A seal record. Checkpoints along the run with location, who verified and the seal status, and a box for shortages, damage and seal discrepancies.
- Ink sign-offs. The dispatcher's and the driver's signatures drawn as SVG, and a box for the receiving terminal to sign on arrival.
- Plus a carrier header, a footer with live page numbers, and a rotated "DRIVER COPY" watermark, bound from data, marking the copy designation on every page.
Features used: PDF/A-2b conformance, watermarks, columns, tables, rules, SVG, barcodes (gs1-128), data binding, headers and footers
- Output
- Template
- Data
How it's built
GS1-128 with an Application Identifier
A GS1-128 symbol carries its data behind Application Identifiers; in the shortcode each identifier is written in square brackets before its value, with no escaping inside the tag. The run code uses AI (401), the consignment number, and prints the human-readable form below it, the identifier in parentheses:
{ "p": "[barcode, gs1-128, [401]$data.run.ginc, 126|30][br][font, Mono][fontsize, 7.5](401) $data.run.ginc[/fontsize][/font]" }
The shipment table does the same per row: it names $data.shipments as its source, and its template row opens with [barcode, gs1-128, [401]$item.ginc, 84|15] above the PRO number, so every shipment on the trailer scans on its own. See GS1-128 with bracketed Application Identifiers.
Tables filled by map
The dangerous-goods and seal-chain tables write only their header row; map gives one entry per column, and each entry is a template over one element of source, inline formatting included. The header row is kept and a row is drawn below it per element:
{ "table": { "style": "sealTable", "widths": [1.1, 1.2, 1.15, 1.05, 0.95], "source": "$data.sealChain",
"map": [ "[fontsize, 8][b]$item.step[/b][/fontsize]", "[fontsize, 8]$item.location[/fontsize]", "[fontsize, 8]$item.by[/fontsize]",
"[font, Mono][fontsize, 7]$item.seal[/fontsize][/font]", "[fontsize, 7]$item.time[/fontsize]" ],
"rows": [ [ { "th": "CHECKPOINT", "style": "th" }, { "th": "LOCATION", "style": "th" }, { "th": "VERIFIED BY", "style": "th" },
{ "th": "SEAL STATUS", "style": "th" }, { "th": "TIME", "style": "th" } ] ] } }
map suits a table whose cells are text; the shipment table writes a full template row instead, because its cells carry their own content and a totals row follows. See Tables.
The copy designation from data
The watermark is a paragraph bound to $data.run.copy ("DRIVER COPY" in this data), set once per page at -30° in a 56 pt bold orange at 6% opacity (copyWatermark). The same document prints the receiving or the office copy by changing one value.
{ "watermarks": [ { "content": { "p": "$data.run.copy", "style": "copyWatermark" }, "angle": -30, "repeat": false, "spacing": [0, 0] } ] }
See Watermarks.