Bilingual Tenancy Contract (Arabic and English)
A one-year residential lease for a flat in Verdania City, drawn up in Arabic, the language that governs it, with an English summary of its key terms for the tenant. The two are one right-to-left columns row: the Arabic contract in the wide track on the right, the summary in the narrow tinted track on the left.
- Letterhead. The landlord's arched-door mark and its name in Arabic and English on the right, the registration number and a QR code that verifies it on the left, the row laid right to left.
- Title and parties. The title in Arabic and in English side by side, the contract number and date in both, then the landlord and the tenant in two ruled boxes, each named in Arabic with an English line beneath.
- A right-to-left row. The row's style sets
direction: "rtl", so its first column, the Arabic contract, stands on the right, andwidths[2, 1]gives it two thirds of the width. The twelve clauses are one ordered list,listStyleTypearabicIndicwith the suffix-, so they count ١- ٢- ٣- in Amiri with the marker on the right; the row is taller than a page, so the clauses carry on at the top of page 2 in the same right-hand column. - The English summary. Twelve key terms, rent, deposit, maintenance and the rest, as a numbered list whose numbers match the clauses, in the narrow column, its tint running down the whole track on both pages, and a line saying that the Arabic text governs.
- A rule in the gap, from
columnRuleon the row's style, the row's height on each page. - Languages. The document's language is Arabic and every English block says
"lang": "en", so a screen reader switches voice at each one. - Signature fields. Each party signs in a PDF signature field labelled with its role in Arabic, with its name, an English line and a date field beneath, right to left.
Features used: PDF/A-4, PDF/UA-2 conformance, columns, lists, SVG, barcodes (qrcode), form fields (text), empty signature fields, data binding, headers and footers, Arabic text
- Output
- Template
- Data
How it's built
The contract and the summary are the two stacks of one columns node whose style is right to left. Columns are placed from the row's start edge, so in a right-to-left row the first stack is the rightmost; the English stack sets its own direction back to left to right through its column style and its paragraphs' styles.
{"columns": {"style": "contract", "widths": [2, 1], "gap": 20, "rows": [
[ {"style": "arCol"},
{"ol": {"style": "arClauses", "li": [
{"p": "[b]العين المؤجرة.[/b] يؤجر المؤجر للمستأجر الشقة رقم ٤٠٢ ...", "style": "arClause", "lang": "ar"}
/* clauses 2 to 12 */ ]}} ],
[ {"style": "enCol"},
{"h2": "Summary of key terms", "style": "enHead", "lang": "en"},
{"ol": {"style": "enTerms", "li": [
{"p": "[b]Premises.[/b] Flat 402, fourth floor, Al Waha Tower ...", "style": "enTerm", "lang": "en"}
/* the other terms, in the clauses' order */ ]}} ]
]}}
"contract": {"direction": "rtl", "columnRule": "0.5pt solid #9DBDB8"},
"enCol": {"backgroundColor": "#F3F8F7", "padding": 9, "direction": "ltr"},
"arClauses": {"fontFamily": "Naskh", "direction": "rtl", "listStyleType": "arabicIndic", "suffix": "- ", "paddingRight": 24, "marker": {"fontWeight": "bold"}}
The suffix is a dash rather than CSS's default full stop because the Arabic full stop is a dot that, to the left of the digit, reads as a zero. Nothing places a page break. When the row is taller than the room left on the page, both columns carry on at the top of the next page in the same places, the Arabic still on the right.