<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jian Cheng</title>
    <description>The latest articles on DEV Community by Jian Cheng (@jian_cheng_e27e993b284bdc).</description>
    <link>https://dev.to/jian_cheng_e27e993b284bdc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3736412%2F4daa54fb-3c2a-43df-9993-d3414ff218da.png</url>
      <title>DEV Community: Jian Cheng</title>
      <link>https://dev.to/jian_cheng_e27e993b284bdc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jian_cheng_e27e993b284bdc"/>
    <language>en</language>
    <item>
      <title>We tested 40 PDFs: where PDF-to-Markdown tools actually fail (2026)</title>
      <dc:creator>Jian Cheng</dc:creator>
      <pubDate>Tue, 01 Dec 2026 05:51:35 +0000</pubDate>
      <link>https://dev.to/jian_cheng_e27e993b284bdc/we-tested-40-pdfs-where-pdf-to-markdown-tools-actually-fail-2026-43eg</link>
      <guid>https://dev.to/jian_cheng_e27e993b284bdc/we-tested-40-pdfs-where-pdf-to-markdown-tools-actually-fail-2026-43eg</guid>
      <description>&lt;p&gt;Disclosure: I am the maker of JustMarkdown. Happy to answer questions or take feedback.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;32 of 40 documents returned usable text.&lt;/strong&gt; The other 8 were 6 image-only scans, 1 blank fixture and 1 corrupt file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Median speed was 9.3 ms per sampled page.&lt;/strong&gt; The free path is fast.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Median token recall was 85.1%.&lt;/strong&gt; Most words are there.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Median order-sensitive edit similarity was 32.1%.&lt;/strong&gt; On multi-column reports and numbered bills, the words are present but the line order differs from Poppler. That matters for quoting and RAG.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OCR quality is not measured in this version.&lt;/strong&gt; 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.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The full CSV, corpus manifest and failure cases are on &lt;a href="https://justmarkdown.com/benchmarks/pdf-to-markdown" rel="noopener noreferrer"&gt;the benchmark page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we actually tested
&lt;/h2&gt;

&lt;p&gt;The corpus has six categories:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Documents&lt;/th&gt;
&lt;th&gt;What it stresses&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Academic papers&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;td&gt;Two columns, formulas, references, dense tables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Government / standards&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Long documents, numbered sections, line numbers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Finance&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Forms, tax tables, annual-report tables&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Forms&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Boxes, repeated labels, multi-copy layouts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scans&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;No text layer; OCR required&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Boundary&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Blank pages and a truncated PDF&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The local arm uses &lt;code&gt;pdfjs-dist&lt;/code&gt;, the same library the browser tool uses. Poppler &lt;code&gt;pdftotext -layout&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;This is a vendor-run benchmark. The person who built the converter also built the benchmark. Read the raw CSV, not just the summary.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the numbers mean
&lt;/h2&gt;

&lt;p&gt;Two text metrics are reported because one number hides the problem:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Token recall&lt;/strong&gt; (order-insensitive): the share of reference tokens found in the output. Median 85.1%. This answers “did we get the words?”&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edit similarity&lt;/strong&gt; (order-sensitive): normalized Levenshtein distance. Median 32.1%. This answers “did we get the words in the same order?”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;By category, the pattern is clear:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Median token recall&lt;/th&gt;
&lt;th&gt;What it tells you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Forms&lt;/td&gt;
&lt;td&gt;100.0%&lt;/td&gt;
&lt;td&gt;Boxes and labels are easy; the text is there&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Academic&lt;/td&gt;
&lt;td&gt;85.1%&lt;/td&gt;
&lt;td&gt;Words are there; reading order is the weak point&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Finance&lt;/td&gt;
&lt;td&gt;84.3%&lt;/td&gt;
&lt;td&gt;Tables and forms are usable but need checking&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reports&lt;/td&gt;
&lt;td&gt;62.4%&lt;/td&gt;
&lt;td&gt;Numbered lines and multi-column layouts hurt&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;We do not publish a single total score. A form and a scanned financial table are not the same job.&lt;/p&gt;

&lt;h2&gt;
  
  
  The failure cases are the useful part
&lt;/h2&gt;

&lt;p&gt;The benchmark keeps every failure:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Six scans&lt;/strong&gt; returned empty text by design. That is not a bug in the free text layer; it is the boundary. OCR is required.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One blank fixture&lt;/strong&gt; produced no text. It should be a no-op and never charge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One corrupt PDF&lt;/strong&gt; failed with a stable error. It should not hang.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One annual report&lt;/strong&gt; had a page with no extractable text. That is a partial-empty case, not a total failure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The OCR arm&lt;/strong&gt; failed with &lt;code&gt;MinerU request failed (HTTP 502)&lt;/code&gt; on all six scans. The gateway was configured but unhealthy at run time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the free path wins
&lt;/h2&gt;

&lt;p&gt;The free text layer is the right default for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;born-digital papers, reports and manuals;&lt;/li&gt;
&lt;li&gt;clean forms with a real text layer;&lt;/li&gt;
&lt;li&gt;privacy-sensitive documents you do not want to upload;&lt;/li&gt;
&lt;li&gt;a quick first pass before deciding whether to pay for OCR.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It is fast, it does not upload, and for many documents it is good enough to copy, search and edit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it loses
&lt;/h2&gt;

&lt;p&gt;It loses on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;scans&lt;/strong&gt; — no text layer, so OCR is required;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;reading order&lt;/strong&gt; — two-column papers and numbered bills;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;complex tables&lt;/strong&gt; — merged cells, cross-page tables, financial statements;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;formulas&lt;/strong&gt; — inline math and LaTeX;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Japanese scans&lt;/strong&gt; — the local PP-OCR dictionary has no kana;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;handwriting and low-resolution scans&lt;/strong&gt; — no tool guarantees these.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  How this compares with other tools
&lt;/h2&gt;

&lt;p&gt;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:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Marker&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docling&lt;/strong&gt; is MIT-licensed, parses PDF, DOCX, PPTX, XLSX, HTML, EPUB and more, and is designed for RAG pipelines with LangChain/LlamaIndex integrations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MinerU&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mathpix&lt;/strong&gt; 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.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with this
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;If your PDF has a text layer, try the free local path first. It is fast and private.&lt;/li&gt;
&lt;li&gt;Check the first page and one table. If headings, paragraphs or numbers are wrong, do not build on it.&lt;/li&gt;
&lt;li&gt;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.&lt;/li&gt;
&lt;li&gt;If you need a citation, keep the page number. A chunk without a page is hard to verify.&lt;/li&gt;
&lt;li&gt;If a vendor claims “100% accurate”, ask for the corpus, the failure cases and the date.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Reproduce it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;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
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next:&lt;/strong&gt; read &lt;a href="https://justmarkdown.com/blog/marker-vs-docling-pdf-to-markdown" rel="noopener noreferrer"&gt;Marker vs Docling&lt;/a&gt;, &lt;a href="https://justmarkdown.com/blog/mineru-vs-marker-pdf-extraction" rel="noopener noreferrer"&gt;MinerU vs Marker&lt;/a&gt;, or &lt;a href="https://justmarkdown.com/blog/mathpix-vs-generic-pdf-to-markdown" rel="noopener noreferrer"&gt;Mathpix vs generic converters&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://justmarkdown.com/blog/pdf-to-markdown-benchmark-2026" rel="noopener noreferrer"&gt;justmarkdown.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>pdf</category>
      <category>markdown</category>
      <category>ocr</category>
      <category>benchmark</category>
    </item>
  </channel>
</rss>
