<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[JustMarkdown]]></title><description><![CDATA[JustMarkdown]]></description><link>https://justmarkdown.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6a1986ac2c4be9dfc0080811/3e98bf30-7edf-45b0-b39f-d3dca8f04740.png</url><title>JustMarkdown</title><link>https://justmarkdown.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:30:06 GMT</lastBuildDate><atom:link href="https://justmarkdown.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[We tested 40 PDFs: where PDF-to-Markdown tools actually fail (2026)]]></title><description><![CDATA[A 40-PDF benchmark: 32 usable text layers, six scans, one blank and one corrupt file. Where free browser PDF-to-Markdown wins and where it fails.]]></description><link>https://justmarkdown.hashnode.dev/we-tested-40-pdfs-where-pdf-to-markdown-tools-actually-fail-2026</link><guid isPermaLink="true">https://justmarkdown.hashnode.dev/we-tested-40-pdfs-where-pdf-to-markdown-tools-actually-fail-2026</guid><category><![CDATA[OCR ]]></category><category><![CDATA[pdf]]></category><category><![CDATA[markdown]]></category><category><![CDATA[Benchmark]]></category><dc:creator><![CDATA[Jian Cheng]]></dc:creator><pubDate>Tue, 01 Dec 2026 10:49:13 GMT</pubDate><content:encoded><![CDATA[<p>Disclosure: I am the maker of JustMarkdown. Happy to answer questions or take feedback.</p>
<h2>The short version</h2>
<p>We ran the free browser text-layer path against 40 documents — 32 public PDFs, six derived scans and two boundary fixtures — and compared it with an independent Poppler reference. The result is deliberately unglamorous:</p>
<ul>
<li><strong>32 of 40 documents returned usable text.</strong> The other 8 were 6 image-only scans, 1 blank fixture and 1 corrupt file.</li>
<li><strong>Median speed was 9.3 ms per sampled page.</strong> The free path is fast.</li>
<li><strong>Median token recall was 85.1%.</strong> Most words are there.</li>
<li><strong>Median order-sensitive edit similarity was 32.1%.</strong> On multi-column reports and numbered bills, the words are present but the line order differs from Poppler. That matters for quoting and RAG.</li>
<li><strong>OCR quality is not measured in this version.</strong> All six scans returned no text layer by design; the MinerU arm returned HTTP 502 on every attempt. We publish zero OCR numbers rather than a fake score.</li>
</ul>
<p>The full CSV, corpus manifest and failure cases are on <a href="https://justmarkdown.com/benchmarks/pdf-to-markdown">the benchmark page</a>.</p>
<h2>What we actually tested</h2>
<p>The corpus has six categories:</p>
<table>
<thead>
<tr>
<th>Category</th>
<th align="right">Documents</th>
<th>What it stresses</th>
</tr>
</thead>
<tbody><tr>
<td>Academic papers</td>
<td align="right">14</td>
<td>Two columns, formulas, references, dense tables</td>
</tr>
<tr>
<td>Government / standards</td>
<td align="right">8</td>
<td>Long documents, numbered sections, line numbers</td>
</tr>
<tr>
<td>Finance</td>
<td align="right">5</td>
<td>Forms, tax tables, annual-report tables</td>
</tr>
<tr>
<td>Forms</td>
<td align="right">5</td>
<td>Boxes, repeated labels, multi-copy layouts</td>
</tr>
<tr>
<td>Scans</td>
<td align="right">6</td>
<td>No text layer; OCR required</td>
</tr>
<tr>
<td>Boundary</td>
<td align="right">2</td>
<td>Blank pages and a truncated PDF</td>
</tr>
</tbody></table>
<p>The local arm uses <code>pdfjs-dist</code>, the same library the browser tool uses. Poppler <code>pdftotext -layout</code> is an independent reference, not a product path. We sample the first six pages of each text PDF to keep the run cheap; the full page count is in the CSV.</p>
<p>This is a vendor-run benchmark. The person who built the converter also built the benchmark. Read the raw CSV, not just the summary.</p>
<h2>What the numbers mean</h2>
<p>Two text metrics are reported because one number hides the problem:</p>
<ul>
<li><strong>Token recall</strong> (order-insensitive): the share of reference tokens found in the output. Median 85.1%. This answers “did we get the words?”</li>
<li><strong>Edit similarity</strong> (order-sensitive): normalized Levenshtein distance. Median 32.1%. This answers “did we get the words in the same order?”</li>
</ul>
<p>The gap is the reading-order problem. A two-column paper can have 90% token recall and 30% edit similarity: every word is there, but the columns are interleaved. For search, that may be fine. For quoting, RAG chunking or a page-level citation, it is not.</p>
<p>By category, the pattern is clear:</p>
<table>
<thead>
<tr>
<th>Category</th>
<th align="right">Median token recall</th>
<th>What it tells you</th>
</tr>
</thead>
<tbody><tr>
<td>Forms</td>
<td align="right">100.0%</td>
<td>Boxes and labels are easy; the text is there</td>
</tr>
<tr>
<td>Academic</td>
<td align="right">85.1%</td>
<td>Words are there; reading order is the weak point</td>
</tr>
<tr>
<td>Finance</td>
<td align="right">84.3%</td>
<td>Tables and forms are usable but need checking</td>
</tr>
<tr>
<td>Reports</td>
<td align="right">62.4%</td>
<td>Numbered lines and multi-column layouts hurt</td>
</tr>
</tbody></table>
<p>We do not publish a single total score. A form and a scanned financial table are not the same job.</p>
<h2>The failure cases are the useful part</h2>
<p>The benchmark keeps every failure:</p>
<ul>
<li><strong>Six scans</strong> returned empty text by design. That is not a bug in the free text layer; it is the boundary. OCR is required.</li>
<li><strong>One blank fixture</strong> produced no text. It should be a no-op and never charge.</li>
<li><strong>One corrupt PDF</strong> failed with a stable error. It should not hang.</li>
<li><strong>One annual report</strong> had a page with no extractable text. That is a partial-empty case, not a total failure.</li>
<li><strong>The OCR arm</strong> failed with <code>MinerU request failed (HTTP 502)</code> on all six scans. The gateway was configured but unhealthy at run time.</li>
</ul>
<p>That last one is the honest limitation. We could have written “OCR accuracy 96%” from an older internal test, but it would not describe this run. Instead, the page says “not measured” and the CSV records the error.</p>
<h2>Where the free path wins</h2>
<p>The free text layer is the right default for:</p>
<ul>
<li>born-digital papers, reports and manuals;</li>
<li>clean forms with a real text layer;</li>
<li>privacy-sensitive documents you do not want to upload;</li>
<li>a quick first pass before deciding whether to pay for OCR.</li>
</ul>
<p>It is fast, it does not upload, and for many documents it is good enough to copy, search and edit.</p>
<h2>Where it loses</h2>
<p>It loses on:</p>
<ul>
<li><strong>scans</strong> — no text layer, so OCR is required;</li>
<li><strong>reading order</strong> — two-column papers and numbered bills;</li>
<li><strong>complex tables</strong> — merged cells, cross-page tables, financial statements;</li>
<li><strong>formulas</strong> — inline math and LaTeX;</li>
<li><strong>Japanese scans</strong> — the local PP-OCR dictionary has no kana;</li>
<li><strong>handwriting and low-resolution scans</strong> — no tool guarantees these.</li>
</ul>
<p>If your document is in one of these categories, do not choose a tool because it has the nicest landing page. Choose one that lets you check the page and charges only for successful output.</p>
<h2>How this compares with other tools</h2>
<p>We did not run Marker, Docling, MarkItDown or Mathpix on this corpus in this version. Their official documentation makes stronger claims than our free path:</p>
<ul>
<li><strong>Marker</strong> reports 76.0% overall on olmocr-bench in balanced mode (83.5% on born-digital PDFs) and supports tables, forms, equations and multi-column layouts. It is Apache-2.0 code with OpenRAIL-M model weights and runs on GPU, CPU or MPS.</li>
<li><strong>Docling</strong> is MIT-licensed, parses PDF, DOCX, PPTX, XLSX, HTML, EPUB and more, and is designed for RAG pipelines with LangChain/LlamaIndex integrations.</li>
<li><strong>MinerU</strong> has four parsing tiers, supports PDF and many office formats, and exposes stable page/block locators. It is the upstream engine behind our paid structured OCR path.</li>
<li><strong>Mathpix</strong> is the specialist for math and handwriting, with a free tier of 10 PDF pages and 10 images per month and a $4.99/month Pro plan with 1,000 PDF pages.</li>
</ul>
<p>Those are claims from the projects and their docs, not results from our run. We link the official pages in the comparison articles so you can verify them.</p>
<h2>What to do with this</h2>
<ol>
<li>If your PDF has a text layer, try the free local path first. It is fast and private.</li>
<li>Check the first page and one table. If headings, paragraphs or numbers are wrong, do not build on it.</li>
<li>If the document is a scan, use OCR. If it is a complex table/formula/Japanese scan, use a layout-aware model and check the page.</li>
<li>If you need a citation, keep the page number. A chunk without a page is hard to verify.</li>
<li>If a vendor claims “100% accurate”, ask for the corpus, the failure cases and the date.</li>
</ol>
<h2>Reproduce it</h2>
<pre><code class="language-bash">npx tsx benchmark/scripts/pdf-quality-bench.ts --download
npx tsx benchmark/scripts/pdf-quality-bench.ts --run --max-pages 6
npx tsx benchmark/scripts/pdf-quality-bench.ts --merge --publish
Copy Link
</code></pre>
<p>The corpus manifest and CSV are public. If you find a bug, the useful report includes the document ID, the page, the expected text and the actual output.</p>
<p><strong>Next:</strong> read <a href="https://justmarkdown.com/blog/marker-vs-docling-pdf-to-markdown">Marker vs Docling</a>, <a href="https://justmarkdown.com/blog/mineru-vs-marker-pdf-extraction">MinerU vs Marker</a>, or <a href="https://justmarkdown.com/blog/mathpix-vs-generic-pdf-to-markdown">Mathpix vs generic converters</a>.</p>
<p><em>Originally published at</em> <a href="http://justmarkdown.com"><em>justmarkdown.com</em></a><em>.</em></p>
]]></content:encoded></item></channel></rss>