Void Check
US voucher-check specimen with MICR line, DataMatrix barcode, and rotated edge watermarks — ready for direct-deposit and ACH setup.
- Check. The bank logo, check number, date line, and payment lines.
- MICR encoding. An aligned label table and DataMatrix verification.
- Voucher stub. It sits below a dashed perforation, with a QR code to verify online and a field/value table; edge watermarks and a rotated Code 128 serial.
- A second page. It lists the specimen's security features.
Features used: PDF/A-2b conformance, watermarks, columns, tables, rules, SVG, barcodes (code128, datamatrix, qrcode), data binding, components, headers and footers
- Output
- Template
- Data
How it's built
Every number on the check - routing, account, check number - comes from the data file, and the same values feed the MICR line, the codes and the edge marks. The bank's logo is the great-plains-bank-logo component, placed by use inside an svg.
The MICR line
The MICR E-13B face ships with the engine and is declared with a vendored/ path. Each field of the line is set in it with [font, MICR], in a borderless table whose second row labels the fields. In this face A types the transit symbol that brackets the routing number, and C the on-us symbol after the account number.
{
"fonts": {
"MICR": { "regular": "vendored/MICR-E13B-Regular.ttf" }
},
"content": [
{
"table": {
"style": "borderless",
"widths": [3, 4, 2],
"rows": [
[
{ "p": "[font, MICR]A $data.bank.routingNumber A[/font]", "style": "micrLine" },
{ "p": "[font, MICR]$data.account.number C[/font]", "style": "micrLine" },
{ "p": "[font, MICR]$data.check.number[/font]", "style": "micrLine" }
],
[
{ "p": "ROUTING", "style": "micrLabel" },
{ "p": "ACCOUNT", "style": "micrLabel" },
{ "p": "CHECK NO.", "style": "micrLabel" }
]
]
}
}
]
}
The codes
The DataMatrix and the QR code are tags inside paragraphs. The DataMatrix carries the routing, account and check numbers in one payload from the data, ABA104000016|ACCT000012345678|CHK1001|VOID; the QR code builds its address from $data.bank.verifyUrl.
{ "p": "[barcode, datamatrix, $data.check.dataMatrixPayload, 40|40]" },
{ "p": "[barcode, qrcode, https://$data.bank.verifyUrl, 40|40]", "style": "qrImage" }
The watermarks
The watermarks list holds four marks. VOID · SPECIMEN is one mark at angle -28, made faint by the opacity of its style. The other three stand at angle 90 along the right edge: with repeat: false, spacing places each mark's centre at page coordinates, so a thin rule, a Code 128 serial built from the check and account numbers, and its caption sit side by side.
{
"watermarks": [
{
"content": { "p": "VOID · SPECIMEN" },
"angle": -28,
"repeat": false,
"style": "centerWatermark"
},
{
"content": { "p": "[barcode,code128,CHK$data.check.number-$data.account.number,180|14]" },
"angle": 90,
"repeat": false,
"spacing": [590, 480],
"style": "edgeBarcode"
}
]
}
The microprint above the signature line is a paragraph of repeated text in the 3 pt sigMicro style, and the perforation is two dashed hr rules around a caption.