<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Markdown on Faisal Khan</title>
    <link>https://faisalkhan.xyz/tags/markdown/</link>
    <description>Recent content in Markdown on Faisal Khan</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 07 Sep 2026 18:32:09 +0300</lastBuildDate>
    <atom:link href="https://faisalkhan.xyz/tags/markdown/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Baidu&#39;s Unlimited OCR Turns Complex PDFs Into Markdown</title>
      <link>https://faisalkhan.xyz/posts/baidu-unlimited-ocr-pdf-markdown/</link>
      <pubDate>Sat, 05 Sep 2026 09:00:00 +0300</pubDate>
      <guid>https://faisalkhan.xyz/posts/baidu-unlimited-ocr-pdf-markdown/</guid>
      <description>Baidu&amp;#39;s open-source Unlimited OCR turns PDFs into structured Markdown while preserving information from tables, diagrams, flows, and charts.</description>
      <content:encoded><![CDATA[<p>There is a new OCR project from Baidu called <a href="https://github.com/baidu/Unlimited-OCR">Unlimited OCR</a>, and it is worth looking at if you work with PDFs, research papers, manuals, or any other document where the layout matters as much as the words.</p>
<p>What it does is break a PDF down into Markdown while trying to preserve the information and structure inside it. The impressive part is that it is not limited to reading lines of text. It is designed to handle tables, diagrams, flows, graphs, and other visual elements that ordinary OCR can easily flatten or misinterpret.</p>
<p><img alt="Screenshot of Baidu Unlimited OCR showing its document-parsing architecture" loading="lazy" src="/images/posts/baidu-unlimited-ocr-pdf-markdown.webp" title="Baidu Unlimited OCR"></p>
<p>That distinction matters. A PDF is often not just a sequence of sentences. It can be a report with a table, a diagram explaining a process, a chart carrying the actual argument, or a page whose meaning depends on how all of those pieces fit together. Unlimited OCR is interesting because it appears to understand that document-level context rather than simply extracting isolated characters.</p>
<p>It runs locally, like a local model on your laptop. The download is not tiny, and I had roughly 6 GB in mind while setting it up, but I like the idea of being able to process documents locally instead of sending everything to a remote service.</p>
<p>The first setup was a little difficult for me. At one point I thought it had stopped working, when it was probably still doing something in the background. Once it was running, though, the results were impressive.</p>
<p>It also has a practical advantage for working with AI assistants. If you convert a complex PDF into clean, structured Markdown first, you can give the model a much more useful representation of the source. That can mean fewer repeated image uploads, less wasted context, and fewer tokens spent trying to reconstruct the document&rsquo;s layout from scratch.</p>
<p>I am still playing with it, so I am not going to pretend it is perfect. But it is very good at the part that matters: understanding the document well enough to turn it into usable Markdown without losing the relationships between the text, tables, diagrams, and other elements.</p>
<p>Worth checking out:</p>
<ul>
<li><a href="https://github.com/baidu/Unlimited-OCR">Unlimited OCR on GitHub</a></li>
</ul>
]]></content:encoded>
    </item>
  </channel>
</rss>
