We Actually Ran the Tools: pdfminer.six vs pdfplumber on a Real Test PDF
One born-digital PDF with 4-level headings, a dashed list, a borderless 4-row table and an 8pt footnote — an honestly tiny test, and still decisive: pdfminer.six extracted 100% of the text but with zero Markdown structure; the table came out column-by-column and had to be rebuilt by hand. pdfplumber found the text fine but detected 0 tables, because the table had no ruling lines. pymupdf4llm (0.0.27) ran too and was the only one to emit real Markdown — correct #/## headings and a row-by-row table, though the table lacks pipe syntax and still needs the repair step. (Its latest 2.0 release installs broken from pip; details in Run 3.) If you need ready Markdown structure from a born-digital file, pymupdf4llm is the strongest of what we ran; if you only need clean text for further processing, pdfminer.six is enough.
Day 8 of our 28-day series. Judge this one like our earlier guides: failure modes over promises. Every number below is from a run we actually executed today, in a Linux sandbox, and is small enough that you can reproduce it in ten minutes. Tools we wanted to test but couldn't are listed with that fact, not a guessed rating.
The test file (so you can judge the test)
We generated a 2-page PDF (with PyMuPDF) containing exactly the four things that predict editing pain:
- An H1-sized title and an H2-sized section heading (20pt / 16pt text — the tool must infer heading levels from font size)
- A 3-item list written with "-" dashes
- A borderless 4×3 table (Region / Q3 Revenue / Growth) — no ruling lines, like most exports
- An 8pt footnote line under the table
This deliberately excludes scanned pages (that is the OCR problem) and keeps the character-recognition risk at zero: these tools read the text layer, so any mistake below is a structure mistake.
The comparison table — only tools we ran, plus two we didn't
| Tool | Status | Headings | List | Borderless table | Footnote | Verdict from our run |
|---|---|---|---|---|---|---|
| pdfminer.six 20260107 (extract_text) | Actually run — output quoted below | Plain text, no # levels | Dashes kept, but each item became its own paragraph | Broken: columns came out interleaved column-by-column (all Regions, then all Revenue figures), not row-by-row | Kept, at the end of page 2 | Best when you only need the raw text; worthless for structure without your own post-processing |
| pdfplumber (extract_tables) | Actually run — output quoted below | Not tested via this API (we ran the table API only) | Not tested via this API | 0 tables detected on both pages | Not tested via this API | Star of table extraction on ruled tables; on our line-free export it found nothing — a real, reproducible failure mode |
| pymupdf4llm 0.0.27 (to_markdown) | Actually run — output quoted below. (Note: latest 2.0 installs broken from pip — both the Tencent mirror and official PyPI serve an empty shell with no module inside; 0.0.27 installs fine and is what we ran.) | Correct: emitted real #/## headings inferred from font size |
Kept as list items (each dash item intact) | Readable row-by-row — but as plain text lines, not Markdown pipe syntax; cells separated by spaces, so column boundaries need eyeballing | Kept, at the end of page 2 | Of the three tools we ran, the only one that emits actual Markdown structure. Still not a finished table: no pipe syntax, so the table-repair step remains. |
| Commercial converters (Adobe, ABBYY, online services) | Not run — no accounts, no budget in our test bench | No claims made. Check them with the 90-second self-test before paying. | — | |||
Why two rows are empty convictions-free: the previous article in this series (Day 8 comparison framework) promised: no invented precision, no copied price tags. Numbers without a published protocol would steer your money wrong, and a tool we couldn't launch has no honest row. Brand names above appear for orientation only, not as endorsements.
Run 1: pdfminer.six — verbatim output
Q3 Sample Report This is an intro paragraph with body text explaining the quarterly results in detail. 1. Overview Overview section text follows here after the level-two heading. - Revenue grew 12% year over year - Costs declined by 3% in the same period - Headcount remained flat 2. Metrics Table Region North America Europe Asia Q3 Rev $1.2M $0.8M $0.5M Growth +10% +14% +20% 1 Figures are unaudited. See appendix for methodology.
What that means for you: every character came back (a 2-page born-digital file is the easy case for text-layer tools), but you receive a stream of paragraphs. The heading sizes were ignored, the table was read column-by-column — Region, North America, Europe, Asia, Q3 Rev… — so reconstructing "North America → $1.2M → +10%" requires matching positions across four fragments. This matches the failure patterns in our table-repair guide: reading order, not recognition, is the killer on borderless tables.
Run 2: pdfplumber — verbatim output
The JSON we got from extract_tables() on both pages:
[{"page": 1, "tables": []},
{"page": 2, "tables": []}]
Zero. The table detection algorithm looks for ruling lines and aligned cell edges; our deliberately line-free export gave it neither. The same script run against a bordered version of the same table typically works — that contrast (lines in vs. lines out) is the single biggest predictor of whether a Python-stdlib route can handle your tables. If your files look like ours, budget for a hand rebuild exactly as described in the table guide.
Run 3: pymupdf4llm — verbatim output
# Q3 Sample Report This is an intro paragraph with body text explaining the quarterly results in detail. ## 1. Overview Overview section text follows here after the level-two heading. - Revenue grew 12% year over year - Costs declined by 3% in the same period - Headcount remained flat ## 2. Metrics Table Region Q3 Rev Growth North America $1.2M +10% Europe $0.8M +14% Asia $0.5M +20% 1 Figures are unaudited. See appendix for methodology.
What that means for you: this is the only tool of the three that returned real Markdown — the 20pt title became a genuine # H1 and the 16pt section became ##, list items stayed list items, and the table came out row-by-row (each row readable on one line) instead of pdfminer.six's column-shredded fragments. Two honest caveats from the same run: the table cells are separated by spaces, not pipe syntax, so a renderer will not display it as a table without the repair step; and the footnote merged into the flow as a plain line. One install note worth passing on: version 2.0 (the default) installs as an empty shell from both mirrors and official PyPI — no module inside — so we pinned pymupdf4llm==0.0.27, which installed and ran cleanly. If pip "successfully installs" 2.0 and Python then can't import it, that's the bug, not you.
What we could NOT test — and refuse to guess
- Marker / Nougat / LLM-based converters — need model downloads too heavy for this sandbox; not run.
- Commercial online services (Adobe, ABBYY, etc.) — no accounts, no budget in our test bench; not run. Check them with the 90-second self-test before paying.
- pymupdf4llm on scanned files — we only ran the born-digital test file above; its OCR behavior is untested here.
- Accuracy percentages, speed numbers, price tags for anything — the only numbers on this page are counts we counted ourselves (2 pages, 0 tables, 3 tool runs).
Decision rule this tiny run actually supports
- Born-digital file, structure doesn't matter (LLM/RAG prep, search, archiving): pdfminer.six's raw text is a trustworthy base — 100% text fidelity on our file; add structure in post.
- Born-digital file with ruled tables: try a table-aware extractor (pdfplumber's API is the free candidate) — it found nothing on our line-free table, but our earlier table guide shows the repair steps that work regardless.
- Any confidential document: a local Python route like these two runs everything on your machine — same privacy argument as this site's converter.
- You need ready-to-publish Markdown today: honestly, every tool we ran needs manual structuring after. Nobody on this page hands you a finished document.
Quick FAQ
Can I reproduce your run?
Yes: pip install pdfminer.six pdfplumber, make any PDF, run python -c "from pdfminer.high_level import extract_text; print(extract_text('your.pdf'))". Your files may behave differently from ours — that's the point of the self-test framework.
Why so few tools in the table?
Because the table only lists what we actually executed. A five-tool table where three cells are marketing claims would be worse for you than a two-tool table you can verify.
Your test file is tiny and synthetic. Fair.
Fair. That's why the verdicts above are scoped to behavior classes (borderless tables, font-size headings) rather than tool rankings, and why the single-file workflow guide tells you to run your own file first.
Next in the series: one adjacent reader workflow per day. Bookmark pdf2mdtool.com and follow along.