Right-to-left and multilingual documents
English, Arabic and Urdu with mirrored layout, mixed-direction sections, isolated bound values and fonts you supply.

English, Arabic and Urdu are the launch languages. Right-to-left is part of the architecture, not an add-on.
Direction
{
"schemaVersion": "1.0.0",
"config": { "page": { "direction": "rtl" }, "locale": "ar" },
"body": [{ "id": "title", "type": "text", "content": ["كشف الحساب: ", { "path": "company" }] }]
}With rtl, text aligns to the right, rows run right to left, tables put the first column on the right and logical spacing mirrors. locale (ar or ur) makes numbers and dates follow the language.
Mixed directions
A section with its own direction lets an English document contain an Arabic or Urdu block, or the other way round. Bound values are isolated, so a Latin name or a number inside Arabic text keeps its order.
Fonts
Arabic and Urdu need a font that has the letters. DocStudio ships none. You register fonts with createFontRegistry, pass them to renderDocument or to the PDF service, and reference the family in your styles. Faces are embedded in the document as data URIs, with a size limit per font. The project's own tests use Noto Naskh Arabic, Noto Sans Arabic and Noto Nastaliq Urdu.
In the designer
The designer interface itself supports right-to-left. Pass direction="rtl" and translated messages. Translations of the interface text come from your application.
Known limitations
- The text layer of Arabic and Urdu PDFs is lossy. Copy, search and accessibility of text extracted from the PDF are degraded.
- Digit shapes and separators come from the runtime's
Intldata. Digits come out Latin in the tested runtimes. - Fixed-region frames use physical left and top, so coordinates mean the same in both directions.
- The rulers in the designer are physical.
The guide shows how to register a font and render an Arabic document.