Guides

MinerU PDF to Markdown: Extract the Document, Then Check Its Structure

Use MinerU’s current local CLI path and inspect reading order, tables, equations, and image references before feeding extracted Markdown to an AI tool.

On this page
  1. Choose a small PDF you can verify
  2. Use the current documented entry point
  3. Understand which output you requested
  4. Inspect four failure-prone details
  5. Feed evidence downstream only after inspection

MinerU can turn documents into an inspectable intermediate format, but extraction is not the same as faithful understanding. Check the Markdown before using it as evidence for a chatbot, summary, or translation.

We checked the official project and output reference on November 1, 2026. The current project documents a 4.x CLI path; older articles may show different commands. We have not installed MinerU or measured extraction accuracy.

Choose a small PDF you can verify

Start with a document you own containing two columns, a table, a footnote, and one image. Keep the original PDF and create a separate output directory. Do not begin with a hundred-page file whose errors you cannot inspect.

Before conversion, write down the expected reading order and a few table values. Those become your acceptance fixture. If the PDF has a poor or missing text layer, note that fact rather than assuming all failures originate in Markdown rendering.

Use the current documented entry point

Follow the official prerequisites for your platform. Its checked installation path uses an isolated Python environment and the stable 4.x series. If uv is already installed, a macOS/Linux example is:

uv venv .mineru --python 3.12
source .mineru/bin/activate
uv pip install -U "mineru>=4.0,<5"
mineru-kit parse document.pdf -o document.md --tier standard

Put your own document.pdf in the working directory first. For Windows, use the environment activation instructions for your shell from the project documentation. This command follows the current manual-install example; it is not a report of a local execution.

Record the installed version and selected tier. Different parsing paths can have different dependencies and behavior. Confirm your configuration before making assumptions about local versus remote processing.

Understand which output you requested

The project distinguishes the mineru, mineru-kit, API, and renderer interfaces. A renderer’s ability to produce a format does not mean every CLI accepts it as a command option. In particular, a JSON command response is not necessarily the same artifact as document-structure JSON.

Use the output contract for your chosen entry point instead of guessing flags from a feature list. If the result contains image references, preserve the referenced assets and their relative paths when moving the Markdown.

Inspect four failure-prone details

Detail What to compare with the PDF
Columns Paragraph sequence and sentence joins
Tables Header-to-value association, units, merged cells
Equations Symbols, superscripts, and numbering
Figures Caption association and working image paths

A syntactically valid Markdown table can still put a number under the wrong heading. A readable paragraph can silently omit a footnote that changes its meaning.

Keep a corrected copy separate from the raw output. That lets you distinguish extraction quality from later editorial repair.

Feed evidence downstream only after inspection

For a knowledge base, preserve document identity and page locators where your chosen output supports them. For a summary, ask the model to identify unsupported questions instead of filling gaps created by extraction.

If the source is primarily a scanned text image, compare a dedicated PaddleOCR workflow. If the objective is a translated PDF with layout, BabelDOC addresses a different stage. Neither a parser nor a translator removes the need to verify the source facts.

Sources & references

Written by Modelrovia Editorial. Our standards distinguish official claims from observed results.

How we research and test →

Tools in this article