Media Tags
Embed images and barcodes directly within text in any text element (p, th, td, h1–h5).
Inline images
Place an image within flowing text.
{ "p": "[img, assets/flag-ca.png, 20|14] Toronto, ON" }
Long form: [image, path, W|H]
| Parameter | Description |
|---|---|
| Path | Asset path (resolved via tenant asset storage) |
| W|H | Width and height in points, separated by | |
Example: logo before company name
{ "p": "[img, assets/logo.png, 30|30] Meridian Financial Group" }
Example: signature in a paragraph
{ "p": "Approved by: [img, assets/signature.png, 120|30]" }
Example: flags in a table
{
"table": {
"widths": [1, 3],
"rows": [
[{ "p": "[img, flags/ca.png, 20|14]", "style": "td" }, { "p": "Canada", "style": "td" }],
[{ "p": "[img, flags/us.png, 20|14]", "style": "td" }, { "p": "United States", "style": "td" }],
[{ "p": "[img, flags/gb.png, 20|14]", "style": "td" }, { "p": "United Kingdom", "style": "td" }]
]
}
}
Supported formats
PNG, JPEG, TIFF, GIF, and SVG.
Inline barcodes
Embed a barcode within text. 63 symbologies are supported (QR, Micro QR, rMQR, DataMatrix, PDF417, Aztec, MaxiCode, DotCode, Code 128, Code 39, EAN/UPC, GS1-128, HIBC family, postal across major regions, and more). See Barcodes for the full list, default sizing, quiet-zone defaults, and color/option overrides.
{ "p": "Scan to verify: [barcode, qrcode, https://verify.example.com, 60|60]" }
| Slot | Description |
|---|---|
type | Symbology name (e.g. qrcode, code128, gs1-128, hibc-dm). Case-insensitive; common aliases supported. |
payload | The value to encode. |
width|height | Optional dimensions in points. Falls back to per-symbology defaults when omitted. |
#hex or #fg|#bg | Optional foreground (and background) color override. |
quiet=N | Optional quiet-zone override in module multiples. |
Example: tracking link with QR
{ "p": "Track your shipment: [barcode, qrcode, https://track.docpayload.example/DOC-2026-04521, 50|50]" }
Example: document reference with Code 128
{ "p": "Ref: [barcode, code128, INV-2026-0042, 180|30]" }
Example: GS1-128 with bracketed Application Identifiers
{ "p": "Pharmacy lot: [barcode, gs1-128, [01]04150123456789[17]270630[10]A4521, 220|45]" }
Example: brand-tinted QR
{ "p": "[barcode, qrcode, https://docpayload.example, 80|80, #1A1A2E]" }
Sizing
Barcode dimensions are specified as width|height in points. Both are honored:
{ "p": "Small: [barcode, qrcode, A, 30|30] Large: [barcode, qrcode, A, 80|80]" }
If dimensions are omitted, the renderer falls back to per-symbology defaults — see Barcodes / Default sizing for the full table.
Errors
A bad payload (e.g. EAN-13 with the wrong digit count) produces an inline placeholder showing the encoder's diagnostic, rather than failing the whole document:
[barcode error: ean13 — Input wrong length (must be 12 or 13 digits)]