{"openapi":"3.1.0","info":{"title":"RTL PDF","version":"1.0.0","contact":{"email":"support@rtlpdf.com","url":"https://rtlpdf.com/support"},"description":"Correctly shaped right-to-left PDFs and text checks for Arabic, Urdu and Persian, paid per call in USDC on Solana (x402).","x-guidance":"POST JSON with a 'text' field (Arabic, Urdu or Persian). /x402/make-pdf returns a PDF download link; /x402/check returns problems in the text and a fixed version when safe. The first request returns a 402 quote; pay it and repeat the request with the PAYMENT-SIGNATURE header. The same tools are free, with limits, at https://rtlpdf.com/mcp."},"servers":[{"url":"https://rtlpdf.com"}],"paths":{"/x402/check":{"post":{"operationId":"check_arabic_text","summary":"Check Arabic, Urdu or Persian text for problems that break PDFs, search and copy-paste: pre-shaped glyphs and reversed letter order (text copied out of a broken PDF), Persian or Urdu letters mixed into Arabic, hidden direction marks, mixed digit systems and characters fonts cannot print","description":"Check Arabic, Urdu or Persian text for problems that break PDFs, search and copy-paste: pre-shaped glyphs and reversed letter order (text copied out of a broken PDF), Persian or Urdu letters mixed into Arabic, hidden direction marks, mixed digit systems and characters fonts cannot print. Returns the issues in English and Arabic and, when a safe fix exists, a fixed version of the text. Deterministic rules, no AI.","tags":["RTL PDF"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200000},"language":{"type":"string","enum":["auto","ar","ur","fa"],"default":"auto"}},"required":["text"],"additionalProperties":false},"example":{"text":"مكبرحم","language":"ar"}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"language":{"type":["string","null"]},"suggested_font":{"type":["string","null"]},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"severity":{"type":"string","enum":["error","warning","info"]},"count":{"type":"integer"},"message_en":{"type":"string"},"message_ar":{"type":"string"}}}},"fixed_text":{"type":["string","null"]}},"required":["ok","issues"]},"example":{"ok":false,"language":"ar","issues":[{"code":"visual_order","severity":"error","count":1,"message_en":"Letters look reversed.","message_ar":"الحروف تبدو معكوسة."}],"fixed_text":"مرحبكم"}}}},"400":{"description":"Input does not match the schema; nothing is charged"},"402":{"description":"Payment Required"}}}},"/x402/make-pdf":{"post":{"operationId":"make_pdf_arabic","summary":"Make a PDF from Arabic, Urdu or Persian text (English may be mixed in) with every letter correctly joined, lines right to left, and numbers, dates and phone numbers in order","description":"Make a PDF from Arabic, Urdu or Persian text (English may be mixed in) with every letter correctly joined, lines right to left, and numbers, dates and phone numbers in order. Light Markdown: '# ' headings, '- ' bullets, '1. ' lists, '| a | b |' tables, **bold**. Open-licence fonts (Naskh, Nastaliq, Cairo, Tajawal). Returns a download link that works for 24 hours. It only lays out text; it does not write, translate or change wording.","tags":["RTL PDF"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.020000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":200000},"language":{"type":"string","enum":["auto","ar","ur","fa"],"default":"auto"},"font":{"type":"string","enum":["auto","naskh","nastaliq","cairo","tajawal"],"default":"auto"},"paper":{"type":"string","enum":["A4","A5","Letter"],"default":"A4"},"font_size":{"type":"number","minimum":7,"maximum":28},"title":{"type":"string","maxLength":200},"justify":{"type":"boolean","default":false},"page_numbers":{"type":"boolean","default":true},"bleed":{"type":"boolean","default":false},"archival":{"type":"boolean","default":false}},"required":["text"],"additionalProperties":false},"example":{"text":"# إشعار\n\nيسرنا دعوتكم إلى الاجتماع يوم 12/05/2026.","paper":"A4"}}}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","properties":{"download_url":{"type":"string","format":"uri"},"expires_at":{"type":"string","format":"date-time"},"pages":{"type":"integer"},"language":{"type":"string"},"font":{"type":"string"},"paper":{"type":"string"},"title":{"type":"string"},"standards":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["download_url","expires_at","pages"]},"example":{"download_url":"https://rtlpdf.com/f/example","expires_at":"2026-11-11T12:00:00Z","pages":1,"language":"ar","font":"naskh","paper":"A4","title":"إشعار","standards":[],"warnings":[]}}}},"400":{"description":"Input does not match the schema; nothing is charged"},"402":{"description":"Payment Required"}}}}}}