Dataset Viewer
Auto-converted to Parquet Duplicate
case
stringclasses
5 values
text
stringclasses
5 values
generator
stringclasses
4 values
extractor
stringclasses
3 values
extracted
stringlengths
4
41
order_ok
bool
2 classes
chars_ok
bool
2 classes
verdict
stringclasses
4 values
greeting
مرحبا بكم في دولة الإمارات
chrome (HTML->PDF)
pypdf
مرحبا بكم في دولة الإمارات
true
true
clean
greeting
مرحبا بكم في دولة الإمارات
chrome (HTML->PDF)
pdfminer.six
تاراملإا ةلود يف مكب ابحرم
false
true
ligature
greeting
مرحبا بكم في دولة الإمارات
chrome (HTML->PDF)
poppler pdftotext
‫مرحبا بكم في دولة اإلمارات‬
false
true
ligature
greeting
مرحبا بكم في دولة الإمارات
reportlab (naive)
pypdf
تارامإلا ةلود يف مكب ابحرم
false
true
reversed
greeting
مرحبا بكم في دولة الإمارات
reportlab (naive)
pdfminer.six
مرحبا بكم في دولة الإمارات
true
true
clean
greeting
مرحبا بكم في دولة الإمارات
reportlab (naive)
poppler pdftotext
‫تارامإلا ةلود يف مكب ابحرم‬
false
true
reversed
greeting
مرحبا بكم في دولة الإمارات
reportlab (+reshaper)
pypdf
ﻣﺮﺣﺒﺎ ﺑﻜﻢ ﻓﻲ ﺩﻭﻟﺔ ﺍﻹﻣﺎﺭﺍﺕ
true
true
clean
greeting
مرحبا بكم في دولة الإمارات
reportlab (+reshaper)
pdfminer.six
ﺕﺍﺭﺎﻣﻹﺍ ﺔﻟﻭﺩ ﻲﻓ ﻢﻜﺑ ﺎﺒﺣﺮﻣ
false
true
ligature
greeting
مرحبا بكم في دولة الإمارات
reportlab (+reshaper)
poppler pdftotext
‫ﻣﺮﺣﺒﺎ ﺑﻜﻢ ﻓﻲ ﺩﻭﻟﺔ ﺍﻹﻣﺎﺭﺍﺕ‬
true
true
clean
greeting
مرحبا بكم في دولة الإمارات
libreoffice (.docx)
pypdf
مرحبا بكم في دولة الإمارات
true
true
clean
greeting
مرحبا بكم في دولة الإمارات
libreoffice (.docx)
pdfminer.six
تاراملإا ةلود يف مكب ابحرم
false
true
ligature
greeting
مرحبا بكم في دولة الإمارات
libreoffice (.docx)
poppler pdftotext
‫مرحبا بكم في دولة اإلمارات‬
false
true
ligature
tender
التزامنا بالنزاهة والشفافية
chrome (HTML->PDF)
pypdf
التزامنا بالنزاهة والشفافية
true
true
clean
tender
التزامنا بالنزاهة والشفافية
chrome (HTML->PDF)
pdfminer.six
ةيفافشلاو ةهازنلاب انمازتلا
false
true
reversed
tender
التزامنا بالنزاهة والشفافية
chrome (HTML->PDF)
poppler pdftotext
‫التزامنا بالنزاهة والشفافية‬
true
true
clean
tender
التزامنا بالنزاهة والشفافية
reportlab (naive)
pypdf
ةيفافشلاو ةهازنلاب انمازتلا
false
true
reversed
tender
التزامنا بالنزاهة والشفافية
reportlab (naive)
pdfminer.six
التزامنا بالنزاهة والشفافية
true
true
clean
tender
التزامنا بالنزاهة والشفافية
reportlab (naive)
poppler pdftotext
‫ةيفافشلاو ةهازنلاب انمازتلا‬
false
true
reversed
tender
التزامنا بالنزاهة والشفافية
reportlab (+reshaper)
pypdf
ﺍﻟﺘﺰﺍﻣﻨﺎ ﺑﺎﻟﻨﺰﺍﻫﺔ ﻭﺍﻟﺸﻔﺎﻓﻴﺔ
true
true
clean
tender
التزامنا بالنزاهة والشفافية
reportlab (+reshaper)
pdfminer.six
ﺔﻴﻓﺎﻔﺸﻟﺍﻭ ﺔﻫﺍﺰﻨﻟﺎﺑ ﺎﻨﻣﺍﺰﺘﻟﺍ
false
true
reversed
tender
التزامنا بالنزاهة والشفافية
reportlab (+reshaper)
poppler pdftotext
‫ﺍﻟﺘﺰﺍﻣﻨﺎ ﺑﺎﻟﻨﺰﺍﻫﺔ ﻭﺍﻟﺸﻔﺎﻓﻴﺔ‬
true
true
clean
tender
التزامنا بالنزاهة والشفافية
libreoffice (.docx)
pypdf
التزامنا بالنزاهة والشفافية
true
true
clean
tender
التزامنا بالنزاهة والشفافية
libreoffice (.docx)
pdfminer.six
ةيفافشلاو ةهازنلاب انمازتلا
false
true
reversed
tender
التزامنا بالنزاهة والشفافية
libreoffice (.docx)
poppler pdftotext
‫التزامنا بالنزاهة والشفافية‬
true
true
clean
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
chrome (HTML->PDF)
pypdf
بالمئة47 بلغت النسبة2026في عام
false
true
ligature
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
chrome (HTML->PDF)
pdfminer.six
ةئلماب 47 ةبسنلا تغلب 2026 ماع يف
false
true
ligature
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
chrome (HTML->PDF)
poppler pdftotext
‫في عام ‪ 2026‬بلغت النسبة ‪ 47‬باملئة‬
false
true
ligature
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
reportlab (naive)
pypdf
ةئملاب
false
false
mangled
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
reportlab (naive)
pdfminer.six
في عام 2026 بلغت النسبة 47 بالمئة
true
true
clean
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
reportlab (naive)
poppler pdftotext
‫ةئملاب ‪ 47‬ةبسنلا تغلب ‪ 2026‬ماع يف‬
false
true
ligature
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
reportlab (+reshaper)
pypdf
ﻓﻲ ﻋﺎﻡ
false
false
mangled
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
reportlab (+reshaper)
pdfminer.six
ﺔﺌﻤﻟﺎﺑ 47 ﺔﺒﺴﻨﻟﺍ ﺖﻐﻠﺑ 2026 ﻡﺎﻋ ﻲﻓ
false
true
ligature
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
reportlab (+reshaper)
poppler pdftotext
‫ﻓﻲ ﻋﺎﻡ ‪ 2026‬ﺑﻠﻐﺖ ﺍﻟﻨﺴﺒﺔ ‪ 47‬ﺑﺎﻟﻤﺌﺔ‬
false
true
ligature
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
libreoffice (.docx)
pypdf
في عام2026 بلغت النسبة47 بالمئة
true
true
clean
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
libreoffice (.docx)
pdfminer.six
ةئملاب 47 ةبسنلا تغلب 2026 ماع يف
false
true
ligature
with_digits
في عام 2026 بلغت النسبة 47 بالمئة
libreoffice (.docx)
poppler pdftotext
‫في عام ‪ 2026‬بلغت النسبة ‪ 47‬بالمئة‬
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
chrome (HTML->PDF)
pypdf
للإنتاج الإعلاميPixelogikشركة
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
chrome (HTML->PDF)
pdfminer.six
يملاعلإا جاتنلإل Pixelogik ةكرش
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
chrome (HTML->PDF)
poppler pdftotext
‫شركة ‪ Pixelogik‬لإلنتاج اإلعالمي‬
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
reportlab (naive)
pypdf
يمالعإلا جاتنإلل
false
false
mangled
mixed
شركة Pixelogik للإنتاج الإعلامي
reportlab (naive)
pdfminer.six
شركة Pixelogik للإنتاج الإعلامي
true
true
clean
mixed
شركة Pixelogik للإنتاج الإعلامي
reportlab (naive)
poppler pdftotext
‫يمالعإلا جاتنإلل ‪ Pixelogik‬ةكرش‬
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
reportlab (+reshaper)
pypdf
ﺷﺮﻛﺔ
false
false
mangled
mixed
شركة Pixelogik للإنتاج الإعلامي
reportlab (+reshaper)
pdfminer.six
ﻲﻣﻼﻋﻹﺍ ﺝﺎﺘﻧﻺﻟ Pixelogik ﺔﻛﺮﺷ
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
reportlab (+reshaper)
poppler pdftotext
‫ﺷﺮﻛﺔ ‪ Pixelogik‬ﻟﻺﻧﺘﺎﺝ ﺍﻹﻋﻼﻣﻲ‬
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
libreoffice (.docx)
pypdf
شركة Pixelogik للإنتاج الإعلامي
true
true
clean
mixed
شركة Pixelogik للإنتاج الإعلامي
libreoffice (.docx)
pdfminer.six
ةكرش Pixelogik يملاعلإا جاتنلإل
false
true
ligature
mixed
شركة Pixelogik للإنتاج الإعلامي
libreoffice (.docx)
poppler pdftotext
‫لإلنتاج اإلعالمي ‪Pixelogik‬‬ ‫شركة‬
false
true
ligature
name
سعادة نجيب المسكري
chrome (HTML->PDF)
pypdf
سعادة نجيب المسكري
true
true
clean
name
سعادة نجيب المسكري
chrome (HTML->PDF)
pdfminer.six
يركسلما بيجن ةداعس
false
true
ligature
name
سعادة نجيب المسكري
chrome (HTML->PDF)
poppler pdftotext
‫سعادة نجيب املسكري‬
false
true
ligature
name
سعادة نجيب المسكري
reportlab (naive)
pypdf
يركسملا بيجن ةداعس
false
true
reversed
name
سعادة نجيب المسكري
reportlab (naive)
pdfminer.six
سعادة نجيب المسكري
true
true
clean
name
سعادة نجيب المسكري
reportlab (naive)
poppler pdftotext
‫يركسملا بيجن ةداعس‬
false
true
reversed
name
سعادة نجيب المسكري
reportlab (+reshaper)
pypdf
ﺳﻌﺎﺩﺓ ﻧﺠﻴﺐ ﺍﻟﻤﺴﻜﺮﻱ
true
true
clean
name
سعادة نجيب المسكري
reportlab (+reshaper)
pdfminer.six
ﻱﺮﻜﺴﻤﻟﺍ ﺐﻴﺠﻧ ﺓﺩﺎﻌﺳ
false
true
reversed
name
سعادة نجيب المسكري
reportlab (+reshaper)
poppler pdftotext
‫ﺳﻌﺎﺩﺓ ﻧﺠﻴﺐ ﺍﻟﻤﺴﻜﺮﻱ‬
true
true
clean
name
سعادة نجيب المسكري
libreoffice (.docx)
pypdf
سعادة نجيب المسكري
true
true
clean
name
سعادة نجيب المسكري
libreoffice (.docx)
pdfminer.six
يركسملا بيجن ةداعس
false
true
reversed
name
سعادة نجيب المسكري
libreoffice (.docx)
poppler pdftotext
‫سعادة نجيب المسكري‬
true
true
clean

ArPDF — does Arabic survive a PDF?

Author: Syamjith NK Write-up: Your Arabic PDF is fine. What reads it is not. Third in a series with ArNum-TTS (speech) and ArShape (screen rendering).

The finding

No PDF generator and extractor pair reads Arabic reliably, and correctness depends on the pair rather than on either tool.

5 Arabic strings × 4 generators × 3 extractors. Clean extractions out of 5:

generator pypdf pdfminer.six poppler pdftotext
Chrome (HTML → PDF) 3/5 0/5 1/5
ReportLab (naive) 0/5 5/5 0/5
ReportLab (+ reshaper) 3/5 0/5 3/5
LibreOffice (.docx → PDF) 5/5 0/5 2/5

Why pdfminer inverts

pdfminer is 0/5 against three generators and 5/5 against exactly one — the only one that performs no text layout. That is not a coincidence, and it explains the whole table.

ReportLab-naive writes the characters into the PDF in logical order, because it does no shaping or bidi. Chrome, LibreOffice and reshaped ReportLab all lay the line out visually first, so the PDF stores glyphs in visual order. pdfminer returns what is stored without re-applying bidi, so it is right precisely when the generator was naive. pypdf and poppler apply their own reordering heuristics, which is why they land in between.

So the question a PDF answers is not "is the Arabic correct" but "which order is it stored in, and does this reader re-apply bidi". No tool tells you either.

The two ends invert. ReportLab-naive extracts perfectly through pdfminer and fails every other reader; Chrome — the route most web tooling uses — is 0 for 5 through pdfminer, which is what many document pipelines run.

So you cannot choose a "good" PDF library or a "good" extractor. A document that survives one reader is unreadable to the next, and when you submit a PDF you do not control which reader is on the other side.

Why it matters

A PDF looks correct, so it is trusted. But almost nothing that consumes one looks at it — procurement portals parse the text, search engines index it, compliance tools scan for terms, applicant systems read CVs. All of them extract.

An Arabic tender response that renders perfectly on screen and extracts as reversed text is, to the system reading it, gibberish. Nobody involved sees the failure.

Three distinct failure modes

Counted separately, because they need different fixes and have very different blast radii.

mode what happens example
reversed the whole string comes back in visual order, so it reads backwards source مرحبا بكم في دولة الإمارات
extracted تاراملإا ةلود يف مكب ابحرم
ligature the lam-alef (لا) is one glyph in the PDF and returns as two letters in the wrong order source الإمارات
extracted اإلمارات
spacing letters intact, word and number boundaries lost extracted النسبة2026في

Observed across the matrix: 9 reversed, 17 ligature, 4 mangled.

The ligature mode is the dangerous one. It is subtle enough to survive a human proofread — a reader skims past اإلمارات — while still breaking exact-match search, keyword compliance checks and any automated comparison.

What this does NOT cover

Stated plainly, because it is the obvious next question:

  • Microsoft Word itself, InDesign and LaTeX are untested. LibreOffice covers the .docx route because it is the dominant headless converter, but it is a different engine from Word and may lay text out differently. InDesign and LaTeX are not installed here, and WeasyPrint could not run (it needs Pango).
  • One font (system Arabic) and one page layout. Embedded subsets and CID fonts may behave differently.
  • Extraction only. It says nothing about whether the PDF renders correctly — it does.

Reproduce

python pdf_bench.py

Writes every generator × extractor combination to results.jsonl with the extracted text for each, so the failure modes can be inspected rather than taken on trust.

Does Arabic Survive the Pipeline?

This is one of three reproducible benchmarks, one per stage of a real production pipeline. Each measures an Arabic failure that looks correct to anyone who does not read Arabic — which is exactly why it ships.

  • ArNum-TTS — do numbers survive speech synthesis?
  • ArShape — does the standard reshaping recipe survive rendering?
  • ArPDF — does Arabic survive a PDF round trip? → you are here

All three are CC BY 4.0 and ship the scorer, the raw per-item results, and an explicit statement of what the measurement does not establish.

Downloads last month
22