How-to
Arabic OCR: Extract Data from Arabic PDFs and Scans with AI
Why Arabic is hard for OCR, how OCR differs from AI data extraction, and how to pull clean fields out of Arabic PDFs and scans.

Arabic OCR turns Arabic PDFs, scans and phone photos into text a computer can use. On its own, it gives you a block of text. Paired with field templates and an AI agent, it pulls out the exact values you need, such as invoice numbers, dates, names and totals, checks them, and sends them to your spreadsheet or ERP.
This guide explains why Arabic is harder for OCR than English, what separates plain text recognition from real data extraction, and how to build an Arabic document workflow in Dragify, step by step.
What is Arabic OCR?
OCR (optical character recognition) reads the characters in an image and returns them as text. Arabic OCR does the same for Arabic script, including documents that mix Arabic with English, product codes and numbers, which is how most business documents in Egypt and the Gulf look.
For a business, the text itself is rarely the goal. Finance wants the supplier, the VAT amount and the total. HR wants the name and national ID number. Operations wants the PO number. So when teams search for Arabic OCR, they usually need Arabic data extraction: OCR plus a way to find, label and verify specific fields.
Why Arabic is harder for OCR than English
Many OCR tools were built for Latin script first, and Arabic documents expose their weak spots. These are the challenges that matter most in practice:
- Connected letters. Arabic is cursive, and most letters change shape depending on where they sit in a word. The engine has to split and recognize letters that touch.
- Dots and diacritics. Several letters differ only by the number or position of dots. A low-quality scan, a fax or a stamp over the text can turn one letter into another.
- Right-to-left text with left-to-right numbers. An Arabic line can contain an invoice number, an English supplier name and an amount. The OCR must keep the right reading order for each part.
- Two sets of digits. Documents use Western digits (0-9), Arabic-Indic digits (٠-٩), or both on the same page. Your ERP expects one format.
- Real-world document quality. Phone photos taken at an angle, crumpled receipts, official stamps and handwritten notes are common in day-to-day paperwork.

None of this makes Arabic OCR unreliable. It means you should test any tool on your own documents, and design the workflow so that uncertain results go to a person instead of straight into your systems.
OCR vs. AI data extraction: what you actually need
There are three levels of document automation. Knowing which one you need saves a lot of rework.
| Approach | What you get | Works best for |
|---|---|---|
| Plain OCR | All the text on the page, in reading order | Search, archiving, reading a letter or contract |
| Template OCR | Named fields from fixed regions of the page | Documents with a stable layout: your own forms, ID cards, a supplier's invoice |
| OCR + AI agent | Fields checked, normalized and explained, with a decision on what happens next | Varied layouts, validation rules, routing and approvals |
Most teams end up combining the last two: templates for document types they see every day, and an AI agent to check the result and handle what the template cannot.
How to extract data from Arabic PDFs and scans, step by step
Here is the workflow we recommend for Arabic documents. Each step maps to a block in Dragify, linked to its documentation.
- Collect the documents. Start the workflow when a file lands in a folder with the Google Drive trigger, arrives by email with the Outlook trigger, or is uploaded with the File Uploader.
- Split large PDFs. Long files go through the PDF Chunker, which breaks them into smaller PDFs so OCR and AI steps run faster and more reliably.
- Read the text. The OCR Block has an Image OCR mode for general images and a Document OCR mode tuned for scanned documents, forms and multi-column layouts.
- Pull out named fields. For document types you see often, draw the fields once in OCR Suite and save them as a template. Each field label becomes a key in the JSON output.
- Check and normalize. An AI Agent block converts digits and dates to the format your systems expect, checks that subtotal plus VAT equals the total, and flags anything that looks wrong.
- Send uncertain results to a person. Template output includes a confidence score. A Routing block sends low-confidence or failed checks for review, and everything else continues.
- Save the result. Write the fields to a spreadsheet, a database or your ERP, with a link to the original file.

Building an Arabic OCR template in Dragify
Templates are what turn a page of Arabic text into clean fields. In OCR Suite, the process takes a few minutes per document type:
- Upload a reference document of the type you want to process (PNG, JPG or the first page of a PDF).
- Draw a rectangle around each field you need, such as invoice number, date, supplier and PO number.
- Give each rectangle a clear label. The labels become the keys in the output, so use the same names across templates.
- Save the template with a name, category and description, then load it in any OCR Block by picking it from the library or pasting its template ID.
The screenshot below is from our staging environment, using a sample Arabic tax invoice made for this guide. The labeled boxes drawn on the invoice are the template; the JSON at the top is what OCR returned for that same file.

Two details in this example are worth noticing. The supplier name stays in Arabic, exactly as printed, while the date written in Arabic-Indic digits is returned in Western digits. And the totals, which sit lower on the page, are extracted in the same JSON, ready for the AI agent to check that the VAT adds up.
When you have many files of the same type, OCR Suite's batch processing applies one template to all of them and returns individual JSON files, a combined JSON file or a single CSV.
Where Arabic OCR pays off
- Supplier invoices and purchase orders. Extract the fields, match them to the PO and receipt, and post them to the ERP. We cover the full flow in our guide to AI invoice processing.
- ID cards and KYC. The OCR Block's Check ID mode reads labeled regions from identity documents, so onboarding teams stop retyping names and ID numbers.
- Forms and applications. Paper forms that customers or employees fill in become structured records.
- Receipts and expense claims. Read merchant, date and amount, and check them against your expense policy.
- Letters and contracts. Plain OCR makes archives searchable; an AI agent can then summarize or classify each document.
Tips for better Arabic OCR accuracy
- Start with your own documents. Run a batch of real, past files through the workflow and check the results by hand before you trust it with live work.
- Improve the input. Flat, well-lit, sharp scans beat any clever post-processing. If phone photos are common, tell people to shoot straight on.
- One template per layout. If two suppliers' invoices look different, give each its own template instead of stretching one to fit both.
- Normalize before you validate. Convert Arabic-Indic digits and date formats first, then run your checks.
- Keep a person in the loop. Route low-confidence results and failed checks for review. This is the core idea behind agentic process automation: automate the routine, escalate the exceptions.
Arabic OCR vs. a traditional RPA bot
Older RPA bots read fixed screen positions and stop when a document changes. An OCR workflow with an AI agent handles new layouts, explains why it flagged a result and asks a person only when it needs to. If you are deciding between the two, our comparison of RPA and agentic process automation goes through the trade-offs.
Get started
Arabic OCR is no longer the hard part. The value comes from what happens after the text is read: clean fields, checks you can trust, and people who only see the exceptions. Dragify gives you each of those steps as a block, and you can also describe the workflow in plain language with Text to Automation and let Dragify draft it for you.
See what the platform can do on the capabilities page, or book a demo and bring a few of your own Arabic documents to test.
Frequently asked questions
Can OCR read Arabic handwriting?
Printed Arabic is read far more reliably than handwriting. Handwritten notes, signatures and stamps should be treated as low-confidence fields and sent to a person for review, rather than passed straight into your systems.
Can I extract data from an Arabic PDF, or only from images?
Both. Long PDFs can be split into smaller files first, then read with document OCR. In Dragify, OCR Suite templates accept PNG, JPG and the first page of a PDF as the reference document.
How do I handle Arabic-Indic digits like ٢٠٢٦?
Normalize them before you validate or save anything. An AI agent step can convert Arabic-Indic digits and date formats to the Western format your spreadsheet or ERP expects, then run checks such as totals and dates.
Do I need a template for every document?
No. Plain OCR reads any document. Templates are for document types you process often and want as named fields, such as one supplier's invoices or a national ID card. Varied layouts can be handled by an AI agent instead.