Skip to content

PDF Printing (Demo202509)

PDF printing uses Documint to generate high-quality printable layouts for industrial use. The PDF Render API endpoint is documented at https://stage.alpha002.io.arda.cards/v1/pdf-render/docs/openapi/index.html.

Three layout types are supported:

  1. Kanban Card — for kanban signalling
  2. Label — for location and bin labels
  3. Breadcrumb — for smaller spaces (shelf edges, etc.)

The QR code printed on PDF outputs uses the Kanban Card lookup URL format:

https://{app-hostname}/kanban/cards/{eId}?view=card&src=qr
PurposeHostname
Productionlive.app.arda.cards
Stagingstage.app.arda.cards
Developmentdev.app.arda.cards

All layouts use a row/column structure:

{
"row": [
{ "column": [ { /* payload_1_1 */ }, { /* payload_1_2 */ } ] },
{ "column": [ { /* payload_2_1 */ } ] }
]
}

Maximum of 2 column elements per row for Letter-format printing.

FieldSource
charactersComputed from item_name.length (1=0–18 chars, 2=19–30, 3=31+)
item_nameitem.name
notesnotes
print_skuitem.internalSku
qr_codehttps://hostname/card/{lookupUrlId}
thin_lineStatic URL (indexed by item.color)
word_minimumImage URL indexed by item.color
text_sizeComputed from max length of order units, min units, location, supplier (1=0–22 chars, 2=23+)
min_qntyitem.minQty
word_locationImage URL indexed by item.color
locationitem.locator.location
word_orderImage URL indexed by item.color
order_qntyitem.defaultSupplier.orderQuantity.amount
order_mechanismitem.defaultSupplier.orderMethod
word_supplierImage URL indexed by item.color
supplieritem.defaultSupply
product_imageBase64-encoded product image from item.imageUrl
color_barStatic URL indexed by item.color
logoTenant logo URL (hardcoded for demo)
thin_light_rectangleImage URL indexed by item.color
light_rectangleImage URL indexed by item.color

Documint Template

Kanban Card Layout

Additional fields: today (print date), all common fields listed above.

Documint Template

Label Layout

Fields: item_name, characters, notes, thin_line, print_sku, qr_code, product_image, color_bar, logo

Documint Template

Breadcrumb Layout

Fields: item_name, characters, notes, thin_light_rectangle, print_sku, qr_code, logo, product_image, light_rectangle

The recommended implementation uses a dedicated PDF-Render module (initially in the operations component) with:

  1. Image and media file selection via index lookup tables (colors.json, color-options.json)
  2. Template storage and Documint API integration
  3. Additional Item attributes (minQuantity, color derivation)
  4. Tenant-configurable logo (future)