Dispatch Note
A cold-chain dispatch note released for carriage by the dispatch officer, whose signature draws an svg written as markup inside the document.
- Consignment details. Consignor, consignee, carrier, booking, set point and driver, then a table of pallets, goods, cases, weight and seal numbers.
- Temperature log. The last 24 hours, drawn as a line against the dashed limit.
- Release checks. A table of the checks, and a Code 128 of the dispatch note number.
- Markup svg in the signature. A round badge with gradients and a check mark, given as an
<svg>string, beside the officer's lines in a box styled by the document.
Features used: PDF/A-2b, DOCX Transitional conformance, columns, tables, SVG, barcodes (code128), a digital signature, headers and footers
- Output
- Template
- Data
How it's built
The signature
The dispatch note is released by the dispatch officer, R. Danjuma: a person's signature.
{
"styles": {
"boxed": {"fontSize": 8, "padding": 8, "border": "1pt solid #1e3a5f", "backgroundColor": "#f3f6fb"},
"stamp": {"marginTop": 2, "marginBottom": 2}
},
"signature": {
"certificate": "certs/demo-signer.p12",
"password": "test-2026",
"visible": true,
"fieldName": "DispatchRelease",
"position": {"pageNumber": 1, "left": 52.0, "bottom": 69.4, "width": 380, "height": 128},
"appearance": {
"signedBy": "R. Danjuma, Dispatch officer",
"reason": "Released for carriage",
"location": "Quay 4",
"signDate": "2026-10-09T09:30:00Z",
"style": "boxed",
"svg": {
"src": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><defs><linearGradient id=\"ring\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stop-color=\"#1e3a5f\"/><stop offset=\"1\" stop-color=\"#2f6f9f\"/></linearGradient><radialGradient id=\"face\" cx=\"0.4\" cy=\"0.35\" r=\"0.8\"><stop offset=\"0\" stop-color=\"#ffffff\"/><stop offset=\"1\" stop-color=\"#cfe0f3\"/></radialGradient></defs><circle cx=\"50\" cy=\"50\" r=\"47\" fill=\"url(#ring)\"/><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"url(#face)\"/><circle cx=\"50\" cy=\"50\" r=\"34\" fill=\"none\" stroke=\"#1e3a5f\" stroke-width=\"1\" stroke-dasharray=\"2 2.4\"/><path d=\"M31 52 L45 66 L71 35\" fill=\"none\" stroke=\"#14532d\" stroke-width=\"8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M50 8 L52.4 14 L58.8 14.4 L53.8 18.4 L55.6 24.6 L50 21 L44.4 24.6 L46.2 18.4 L41.2 14.4 L47.6 14 Z\" fill=\"#f59e0b\"/></svg>",
"width": 90,
"height": 90,
"viewBox": [0, 0, 100, 100],
"title": "Release mark: a green tick on a blue ring",
"desc": "A green tick on a blue ring with an amber star, the dispatch office's release mark.",
"style": "stamp"
}
}
}
}
The appearance draws the officer's lines (signer, reason, place and date) in the document's boxed style: 8pt text in a 1pt navy frame on a pale blue fill, with 8pt of padding. Its svg is written as markup: src holds a whole <svg> string (a blue ring and face drawn with gradients, a green tick and an amber star), drawn 90pt square at the right of the box, with a title and a desc that describe it and the stamp style giving it 2pt above and below (SVG). Any svg file's text can be pasted into src this way, its quotes escaped.
With signingType left at PAdES and no timestampServer, the signature reaches the B-B baseline level (Signature levels): the signature, the signing certificate and its signed attributes; a timestampServer would take it to B-T. Left out, its default certification level noChanges makes it a certification signature: no change is allowed after signing. The document also claims a DOCX (transitional): there the same object signs the whole package, in XAdES at the same level, and the same box is drawn.
Verifying it
Open the PDF in a reader and its signature panel shows the signature and whether the file still verifies: any change to the signed file invalidates it. The box on the page is a drawing, the release mark included, and says nothing about whether the signature verifies; the panel does. The document signs with certs/demo-signer.p12, a self-signed demonstration key, so every reader shows its signer as untrusted. To be trusted, sign with your own key, whose certificate your readers trust: upload a file under that name, or name your own key in certificate. E-signature lists every key of the block.