How to Translate a PDF to Arabic and Check More Than the Layout
An Arabic PDF can look right and still extract wrong. Compare four test files, check search and copy, and verify RTL layout for print PDFs and EPUBs.

To translate a PDF to Arabic, first confirm whether the source has selectable text or only page images, then translate a short hard section, and check the output in two ways: how it looks and what text it contains. The second check is the one most people skip. A PDF stores drawing instructions and a separate record of which characters those drawings mean, and with Arabic the two can disagree.
We built four small Arabic PDFs to see how far they can drift apart. Three of them look correct on the page. None of the three gave correct text in every tool we tried, and one tool's clean result was another tool's failure. So the useful question is not whether a file is good, but whether it works in the application your readers will use.
Before you translate: which PDF do you have?
Try to select a sentence in the source file. If you can, it has a text layer and can usually go straight to translation. If you cannot, the pages are images and need OCR first, which brings its own errors. Translating a scanned PDF covers the OCR route and how to tell what your file contains.
Then choose a test section of two or three pages that contains the hardest material in the file: a table, a figure caption, a footnote, a numbered list, and mixed-script sentences containing a Latin name, a decimal or percentage, a negative value, a date, a URL or email address, and parentheses. Translate that first. A failure you find on page 3 is cheaper than one you find after paying for 300 pages.
Record your language rules before you start, because a reviewer cannot judge the output without them: which regional variety of Arabic and register you need, whether numbers should use Western digits (2024) or Arabic-Indic digits (٢٠٢٤), date and punctuation conventions, how to transliterate names and titles, and how to treat untranslated Latin terms. For a long document or book, lock down approved forms for repeated terms first using a translation glossary.
Four PDFs with the same three sentences
Each sample holds the same three Arabic lines. They include a percentage, a year, a page number, and the Latin name UNESCO. All four use the same font, Arial, and differ mainly in how the file was produced.
| Sample | How it was made | On the page | pdftotext and PyMuPDF | PDFium |
|---|---|---|---|---|
| A | Chrome printing an HTML page to PDF | Correct | 68 standard letters. Finds زيادة, misses الطلاب | 68 standard letters, some words reversed. Finds زيادة and الطلاب, misses بنسبة |
| B | ReportLab, text shaped first with python-arabic-reshaper and python-bidi | Correct | 67 presentation forms, no standard letters. Finds none of the three words | 68 standard letters. Finds all three words |
| C | ReportLab, no shaping step | Visibly broken | 68 standard letters, reversed. Finds none | Same as the other tools |
| D | Sample A flattened to a page image | Correct | No text | No text |
We ran this on November 6, 2026 with the pdftotext 26.08 command-line tool and the PyMuPDF 2.1 and PDFium 156 libraries. PDFium is the engine behind Chrome's PDF viewer. pypdf 6.21 gave a third result on sample A, described below. We did not click through a PDF viewer, and we did not test Acrobat or Preview. A different font or version can behave differently, so treat this as proof that these failures exist, not as a ranking of tools or a measure of how common each one is.
Only sample C would fail a visual review. Samples A, B, and D all pass it, and a reviewer looking at the page cannot tell them apart.
What each failure means
Sample B depends on the tool reading it. Arabic letters take different joining forms depending on their position in a word. Sample B stores those drawn shapes as Unicode's Arabic presentation form characters, which the Unicode Standard says "should not be used in general interchange". In pdftotext and PyMuPDF, a search for زيادة ("increase") finds nothing, because the extracted text contains different code points that merely look the same. PDFium converts them back to standard letters, and the same search succeeds.
Sample C is the classic backward text. Its extracted first line contains ةبسنب ةدايز, which is زيادة بنسبة with every letter reversed. It was drawn from correctly ordered text with no shaping or direction step, so the page itself is wrong and the letters do not join. All four tools returned the letters reversed. This is the one failure you can see without any test.
Sample D has no text at all. It looks identical to sample A, and every tool returned nothing. Searching and copying will not work until someone runs OCR on the output.
Sample A is closest to right, with a catch. The third line says عدد الطلاب ("the number of students"), and pdftotext and PyMuPDF both returned الطالب ("the student"). The letters لا are drawn as one joined shape, and those tools returned them in the wrong order. Nothing looks wrong on the page, the result is still a real Arabic word, and a quote taken from that text says something else. PDFium kept الطلاب but returned في as يف, reversing other words on the same line. pypdf returned 30 standard letters mixed with 37 presentation forms across the page. That makes three different results from one file that looks perfect.
The checks to run on your translated PDF
Run these on the real output, in the application your readers will use. Because results vary by tool, a pass in one viewer does not carry over to another.
- Look at the page. Letters must join, and a line must start from the right. Check that columns run in the intended order, that table columns are in the order you decided on, and that numbers sit next to the right labels. Digits run left to right inside Arabic text, so a number running the opposite way from the words is expected. Compare values against the source rather than guessing.
- Copy one sentence into a plain text editor. Words should be in order and letters should join. Reversed letters or words point to the problems in samples A and C.
- Search for three kinds of word. Pick words that appear on the page: a Latin name or number, at least five ordinary Arabic words from different lines, and an Arabic word containing لا, such as الطلاب or سلام. Type the Arabic ones fresh rather than copying them from the PDF. The Latin search only proves a text layer exists. A few Arabic hits are not proof: in sample A, PDFium found زيادة and الطلاب but missed بنسبة on the same page. Treat any miss as a failure, and a clean run as a sample rather than a guarantee.
- Count the characters if you cannot read Arabic. You do not need to read the language to spot the stored form in sample B. With poppler's
pdftotextinstalled, save this ascount.py:
import sys
t = sys.stdin.read()
base = sum(0x0600 <= ord(c) <= 0x06FF for c in t)
forms = sum(0xFB50 <= ord(c) <= 0xFDFF or 0xFE70 <= ord(c) <= 0xFEFC for c in t)
print("base letters:", base, "presentation forms:", forms)
Then run pdftotext translated.pdf - | python3 count.py. Our samples returned 68 and 0 for A, 0 and 67 for B, and 0 and 0 for D. A high presentation-form count means search and copy will depend on the reader's tool. It cannot detect the problems in samples A and C, which both scored 68 and 0, so keep the word search. If you do not read Arabic, also have an Arabic reader check the meaning: a character count says nothing about the translation.
For a long book going to print or a retailer, continue with the RTL book checks further down this page, which cover page progression, covers, mirrored margins, and EPUB readers. For layout checks that are not specific to Arabic, see how to translate a PDF while keeping the format.
How much of this do you need to fix?
Match the fix to what the file is for.
| What the PDF is for | What to require |
|---|---|
| Reading on screen | The page looks right. Samples A, B, and D all qualify |
| Searching a long document | Every test search succeeds in the application readers will use, including a word with لا |
| Quoting or reusing the text | Check every quote against the page, whichever file type you have |
| Screen readers | A real accessibility check, including tagged reading order. We did not test this |
If you only need to read the document, a sample B result is fine, and redoing the work would be a waste. If search or quoting matters and your checks fail, try a different tool or source format rather than patching the PDF, and run the same checks on the new result.
If you only need clean text out of a sample B file, Unicode's NFKC normalization maps presentation forms back to base letters. Applied to the pdftotext output, it made both الطلاب and زيادة findable. It does not repair reversed text, and it does not change the PDF itself. If your output has no text layer at all, as in sample D, you will need an OCR step as described in translating a scanned PDF.
Extra checks for RTL books going to print or retailers
An Arabic or Hebrew book is not publication-ready merely because its paragraphs align to the right. Complete right-to-left editions also need correct page progression, stable bidirectional behavior inside mixed-script passages, embedded fonts, matching language metadata, and covers and navigation built for the chosen format and retailer. Download the RTL book translation checklist to record the reader, device, format, and page location for each check.
Separate four layers of direction
Teams often collapse several independent settings into one label called "RTL." Inspect each layer separately.
| Direction layer | What it controls | Typical failure |
|---|---|---|
| Character order | How letters and combining marks form a word | Broken Arabic shaping or misplaced Hebrew marks |
| Paragraph and base direction | How RTL and LTR runs are ordered within a block | A URL, number, or Latin name appears in the wrong visual position |
| Page progression | Which way a reader advances through an EPUB or fixed-layout book | The book opens or turns from the wrong side |
| Physical cover and interior order | Where front cover, spine, back cover, and first interior page belong | Front and back cover positions are reversed |
Right-aligning text does not reliably control any of these layers, so do not use alignment as an acceptance test. Amazon KDP's language and reading-direction guidance says the selected content language, book content, and metadata must match, and that the chosen reading direction must match the file. Retailer rules and format availability can change, so verify language and edition requirements right before publishing.
Check punctuation, fonts, tables, and diagrams
- Mixed-script numbers and punctuation: Bidirectional bugs usually appear at boundaries between RTL text, LTR runs, numbers, and punctuation. Verify decimal and thousands separators, currency symbol placement, negative signs, ranges, units, dates, ISBNs, phone numbers, version strings, equations, parentheses or brackets, and colons, slashes, and quotation marks against the source. Do not patch a mixed-script line by inserting arbitrary spaces until one screenshot looks right; spaces wrap differently on another device. Use direction metadata, semantic markup, or isolation controls supported by your source format.
- Fonts and shaping: Check regular, bold, italic or oblique, headings, captions, footnotes, tables, and cover type. Reject disconnected Arabic letters, missing glyph boxes, colliding combining marks, substituted glyphs, clipped ascenders or marks, excessive letter spacing applied to a connected script, or fallback fonts that change line lengths enough to break pages. When embedded fonts are expected, inspect the final PDF on a computer that does not have the production font installed.
- Tables, lists, footnotes, and images: Decide whether a table's first semantic column belongs on the visual right, and check header-to-value relationships, overflow, and screen-reader order. Do not mirror a data table automatically if target readers expect the source sequence. Check list marker position, indentation, nested levels, and numbered steps. Verify footnote marker placement next to punctuation, note direction, numbering, and backlinks. For images and diagrams, identify embedded text and approve each mirroring decision individually so you do not reverse logos, maps, controls, or factual relationships.
Print PDF interiors and covers
For a print or retail PDF interior, confirm the first page and physical page sequence, mirrored inner and outer margins, bookmarks and table-of-contents destinations, embedded fonts, and tagged reading order when accessibility is part of delivery.
Physical cover layout depends on the print provider and reading direction. KDP's current Hebrew, Persian, and Yiddish publishing guidance says that for its RTL paperback cover PDF, the front cover sits to the left of the spine and the back cover to the right. Do not generalize one vendor's template to another: download the exact template for your trim size, page count, paper, and reading direction, and verify the title, subtitle, author, translator credit, spine direction, bleed, barcode safe area, and back-cover copy.
EPUB package, content, and reader checks
If you also ship an EPUB, test the package metadata, content markup, and real reading systems.
- Set the publication language to the exact target language tag, confirm spine chapter order, and declare the page-progression direction explicitly rather than relying on a reader default. The W3C's EPUB overview explains that EPUB can specify global page progression and uses HTML directionality features for bidirectional text.
- Set base direction at the document or block level, isolate embedded LTR names, codes, or URLs so they do not scramble surrounding punctuation, and open every table-of-contents entry, landmark, footnote link, and return link.
- Test the final EPUB in at least two independent reading systems relevant to your audience, changing font size, typeface, theme, and orientation. Include the retailer's preview tool: KDP's current Arabic guidance requires RTL direction for Arabic Kindle content and recommends reviewing the file in Kindle Previewer.
Triage defects before release
| Severity | RTL examples | Required action |
|---|---|---|
| Blocker | Wrong page progression; missing chapter; unreadable shaping; cover and interior order reversed | Stop release and rerun every check affected by the cause |
| Major | Mixed-script line changes meaning; wrong number-label pairing; broken note link; repeated missing glyph boxes | Fix before acceptance and search for the pattern across the book |
| Cosmetic | Isolated spacing or alignment issue with meaning and navigation intact | Fix to the agreed editorial and production standard |
Any blocker invalidates the release. Two similar major defects point to a systematic markup, font, or reconstruction problem, so expand review beyond the pages where you first spotted them. Before sign-off, have a qualified Arabic or Hebrew reviewer approve connected prose, not only page geometry. For broader translation quality standards beyond RTL behavior, see what makes a good translation.
Translating with BookTranslator
BookTranslator's PDF translator lists Arabic, Hebrew, Farsi, and Urdu as supported right-to-left targets. It can also produce a bilingual PDF, including a layout that alternates translated and source pages, which makes checking numbers and table values against the original quicker.
One current limitation matters for this article. As of November 6, 2026, Arabic text in our released standard PDF output can extract as presentation forms, the sample B pattern, often with spaces between words lost. OCR Mode output can extract with stray control characters, which count.py does not measure. Fixes for both are in development but not yet released. If you mainly need to read the result, this may not affect you. If you need search or copy, test that first.
We did not run a BookTranslator task for the four samples above. Upload your test section, inspect the price, and run the same checks on the result before you translate the full file. For books going to print or retail, treat the translated file as a draft and complete the direction, typography, reader, and human language checks above before release. For the choice between tools, see the PDF translation tools comparison.
Related Posts





