Arabic and English invoice PDF from JSON

A two-page tax invoice for a Dubai customer: 40 line items in AED, 5% VAT, Arabic and English labels. The images and the PDF below are this page's JSON rendered by the Docspout engine. All names, numbers and TRNs are invented sample data. It is a PDF copy of an invoice, not an e-invoice file.

Page 1 of the Arabic and English invoice
Page 1: rows 1 to 17
Page 2 of the Arabic and English invoice
Page 2: the header repeats, then rows 18 to 40 and the totals

What to check in a mixed Arabic and English table

Ways a mixed right-to-left table can break on the way to PDF, and what the PDF above does instead. Open the PDF and check each one.

What often goes wrongIn this PDF
Arabic letters come out separate, or in reverse order.Every Arabic word is joined and reads right to left, including the customer name.
The table keeps its left-to-right column order, so the description sits on the wrong side.The # and الوصف columns start on the right; the amounts end on the left.
Numbers and brackets inside Arabic text jump to the wrong end of the line.Arabic and English descriptions sit in separate columns, so each cell runs in one direction.
Page 2 starts with rows and no column headings.Page 2 repeats the bilingual table header.
A row is cut in half at the page break.Rows that wrap to two lines stay together on one page.

The JSON

This is the exact data in the PDF. Send your own invoices in the same shape.

{
  "sample_notice": "SAMPLE · بيانات تجريبية",
  "number": "INV-2026-0412",
  "issued": "2026-12-04",
  "due": "2027-01-03",
  "company": {
    "name": "شركة الخليج للتجهيزات المكتبية",
    "en": "Gulf Office Fit-Out LLC (sample)",
    "address": "Business Bay, Dubai, UAE",
    "trn": "100000000000003"
  },
  "customer": {
    "name": "مؤسسة نجمة الصحراء للتجارة",
    "en": "Desert Star Trading Est. (sample)",
    "address": "Al Barsha, Dubai, UAE",
    "trn": "100000000000010"
  },
  "items": [
    {
      "no": 1,
      "name": "مكتب تنفيذي خشب الجوز",
      "en": "Executive desk, walnut",
      "qty": 4,
      "price": 3200,
      "amount": 12800
    },
    {
      "no": 2,
      "name": "كرسي مكتب مريح",
      "en": "Ergonomic office chair",
      "qty": 24,
      "price": 950,
      "amount": 22800
    },
    {
      "no": 3,
      "name": "طاولة اجتماعات 12 مقعداً",
      "en": "Meeting table, 12 seats",
      "qty": 2,
      "price": 7800,
      "amount": 15600
    },
    {
      "no": 4,
      "name": "كرسي اجتماعات",
      "en": "Meeting chair",
      "qty": 24,
      "price": 620,
      "amount": 14880
    },
    {
      "no": 5,
      "name": "خزانة ملفات معدنية",
      "en": "Metal filing cabinet",
      "qty": 10,
      "price": 840,
      "amount": 8400
    },
    {
      "no": 6,
      "name": "رف كتب مفتوح",
      "en": "Open bookshelf",
      "qty": 8,
      "price": 560,
      "amount": 4480
    },
    {
      "no": 7,
      "name": "أريكة استقبال ثلاثية",
      "en": "Reception sofa, three seats",
      "qty": 2,
      "price": 4300,
      "amount": 8600
    },
    {
      "no": 8,
      "name": "طاولة قهوة زجاجية",
      "en": "Glass coffee table",
      "qty": 2,
      "price": 1150,
      "amount": 2300
    },
    {
      "no": 9,
      "name": "مكتب استقبال مع إضاءة",
      "en": "Lit reception counter",
      "qty": 1,
      "price": 9600,
      "amount": 9600
    },
    {
      "no": 10,
      "name": "حاجز صوتي بين المكاتب",
      "en": "Acoustic desk divider",
      "qty": 20,
      "price": 380,
      "amount": 7600
    },
    {
      "no": 11,
      "name": "سجادة مكتبية رمادية بالمتر المربع",
      "en": "Grey office carpet, per m²",
      "qty": 180,
      "price": 95,
      "amount": 17100
    },
    {
      "no": 12,
      "name": "ستائر رول معتمة",
      "en": "Blackout roller blind",
      "qty": 16,
      "price": 420,
      "amount": 6720
    },
    {
      "no": 13,
      "name": "لوح إضاءة سقفي",
      "en": "LED ceiling panel",
      "qty": 60,
      "price": 210,
      "amount": 12600
    },
    {
      "no": 14,
      "name": "مصباح مكتب",
      "en": "Desk lamp",
      "qty": 24,
      "price": 145,
      "amount": 3480
    },
    {
      "no": 15,
      "name": "شاشة عرض 65 بوصة",
      "en": "Display screen, 65 inch",
      "qty": 3,
      "price": 5400,
      "amount": 16200
    },
    {
      "no": 16,
      "name": "حامل شاشة جداري",
      "en": "Wall screen mount",
      "qty": 3,
      "price": 480,
      "amount": 1440
    },
    {
      "no": 17,
      "name": "نظام مؤتمرات صوتي",
      "en": "Conference audio system",
      "qty": 2,
      "price": 6200,
      "amount": 12400
    },
    {
      "no": 18,
      "name": "كاميرا مؤتمرات",
      "en": "Conference camera",
      "qty": 2,
      "price": 2900,
      "amount": 5800
    },
    {
      "no": 19,
      "name": "نقطة وصول لاسلكية",
      "en": "Wireless access point",
      "qty": 6,
      "price": 1350,
      "amount": 8100
    },
    {
      "no": 20,
      "name": "مفتاح شبكة 48 منفذاً",
      "en": "Network switch, 48 port",
      "qty": 2,
      "price": 4100,
      "amount": 8200
    },
    {
      "no": 21,
      "name": "كابل شبكة بالمتر",
      "en": "Cat6 network cable, per metre",
      "qty": 900,
      "price": 6,
      "amount": 5400
    },
    {
      "no": 22,
      "name": "خزانة خوادم",
      "en": "Server rack",
      "qty": 1,
      "price": 3800,
      "amount": 3800
    },
    {
      "no": 23,
      "name": "وحدة تكييف إضافية",
      "en": "Supplementary AC unit",
      "qty": 4,
      "price": 5200,
      "amount": 20800
    },
    {
      "no": 24,
      "name": "مبرد مياه",
      "en": "Water dispenser",
      "qty": 3,
      "price": 890,
      "amount": 2670
    },
    {
      "no": 25,
      "name": "ثلاجة مطبخ",
      "en": "Pantry refrigerator",
      "qty": 1,
      "price": 3400,
      "amount": 3400
    },
    {
      "no": 26,
      "name": "آلة قهوة",
      "en": "Coffee machine",
      "qty": 1,
      "price": 4750,
      "amount": 4750
    },
    {
      "no": 27,
      "name": "خزائن مطبخ علوية",
      "en": "Pantry wall cabinets",
      "qty": 6,
      "price": 1250,
      "amount": 7500
    },
    {
      "no": 28,
      "name": "طاولة طعام للموظفين",
      "en": "Staff dining table",
      "qty": 2,
      "price": 2100,
      "amount": 4200
    },
    {
      "no": 29,
      "name": "كرسي طعام",
      "en": "Dining chair",
      "qty": 12,
      "price": 340,
      "amount": 4080
    },
    {
      "no": 30,
      "name": "لوح كتابة زجاجي",
      "en": "Glass whiteboard",
      "qty": 5,
      "price": 990,
      "amount": 4950
    },
    {
      "no": 31,
      "name": "نبات داخلي في أصيص",
      "en": "Potted indoor plant",
      "qty": 18,
      "price": 260,
      "amount": 4680
    },
    {
      "no": 32,
      "name": "خزانة أمتعة للموظفين",
      "en": "Staff locker unit",
      "qty": 4,
      "price": 2300,
      "amount": 9200
    },
    {
      "no": 33,
      "name": "قفل باب ذكي",
      "en": "Smart door lock",
      "qty": 6,
      "price": 1180,
      "amount": 7080
    },
    {
      "no": 34,
      "name": "قارئ بطاقات دخول",
      "en": "Access card reader",
      "qty": 4,
      "price": 1450,
      "amount": 5800
    },
    {
      "no": 35,
      "name": "كاميرا مراقبة داخلية",
      "en": "Indoor security camera",
      "qty": 8,
      "price": 720,
      "amount": 5760
    },
    {
      "no": 36,
      "name": "لافتة شعار الشركة",
      "en": "Company logo sign",
      "qty": 1,
      "price": 3600,
      "amount": 3600
    },
    {
      "no": 37,
      "name": "طلاء جدران بالمتر المربع",
      "en": "Wall painting, per m²",
      "qty": 420,
      "price": 28,
      "amount": 11760
    },
    {
      "no": 38,
      "name": "تركيب وتجميع الأثاث",
      "en": "Furniture assembly and installation",
      "qty": 1,
      "price": 7500,
      "amount": 7500
    },
    {
      "no": 39,
      "name": "نقل ورفع إلى الطابق 18",
      "en": "Delivery and lift to floor 18",
      "qty": 1,
      "price": 2800,
      "amount": 2800
    },
    {
      "no": 40,
      "name": "تنظيف بعد التركيب",
      "en": "Post-installation cleaning",
      "qty": 1,
      "price": 1900,
      "amount": 1900
    }
  ],
  "subtotal": 320730,
  "vat": 16036.5,
  "total": 336766.5
}

Make the same PDF yourself

Download the template file, then run these with a test key from your dashboard. Test keys are free and watermark the PDF.

# 1. Import the template file (it carries the sample data above)
curl https://docspout.com/v1/templates/import \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  --data @invoice-arabic.json

# 2. Open the imported template in the dashboard and press Publish.

# 3. Render the sample data with the template id from step 1
jq '{template: "tpl_from_step_1", data: .body.sample}' invoice-arabic.json |
curl https://docspout.com/v1/renders \
  -H "Authorization: Bearer sk_test_…" \
  -H "Content-Type: application/json" \
  --data @-

Send your first PDF in two minutes.

100 documents a month free. No card.

Start free