Troubleshooting

Fixes for common DocStudio problems: dashes where data should be, a page total of 1, empty QR codes, PDF failures, fonts, schema errors and table styling.

A dash appears where a value should be

The default missing-data policy is placeholder, which shows a dash. The path found nothing, or found null. Check the path against your data, add a fallback, or set config.missingData to warn to get a MISSING_DATA diagnostic that names the node.

Page 1 of 1 in the preview

The total number of pages is known only to the print or PDF engine. In the screen target and on the designer canvas {total} shows 1. Print or generate a PDF to see the real total.

SCOPE_VIOLATION mentioning $rows

$rows exists only inside a table. For a total outside a table, give the aggregate the list and a per-item expression: { "fn": "sum", "args": [{ "path": "items" }], "of": { "path": "amount" } }.

SCHEMA_VIOLATION on a table header

Table column header values are literal strings, not expressions. Use a plain string.

Unknown property errors

Template objects are closed. A misspelled or unsupported property is an error with the JSON Pointer of the object, so read the path of the diagnostic.

A bold cell lost its alignment

A cell style replaces the cell's align. Put textAlign in the style as well.

A QR code or barcode is empty

  • A QR value is empty or longer than 213 bytes.
  • A barcode value is empty or longer than 80 characters.
  • The value does not fit the format, for example letters in ean13, characters Code 39 does not allow, or a wrong EAN-13 check digit.

A warning names the node.

The designer does not appear or has no height

The designer fills its parent. Give the parent element a height, such as 100vh.

The PDF service fails to start

docstudio/server needs playwright and an installed Chromium. Run npx playwright install chromium and check that the process can launch it. Inspect result.diagnostics when render returns ok: false.

Arabic or Urdu text shows boxes or the wrong font

The font does not cover the script, or was not registered. Register a font with createFontRegistry and pass it to renderDocument or createPdfService.

The PDF differs from the preview

The screen preview is one continuous page, and fonts come from the viewer's machine. Compare against the print target, and give the PDF service the same fonts as the browser.

An image is missing in PDF output

An asset: reference the service cannot resolve is left out. Provide an assets resolver, or use a public https image.

Last updated 2026-12-03