Tools,

PDF-Extract-Kit, tested on 20 image-only PDF pages

50.9%

of two-column words in reading order

Read a scan in one call

Words read, columns mixed

Reader Scan B Two columns
PDF-Extract-Kit, English model 90.9% 50.9%
Tesseract 5.5.4 96.0% 99.8%
Our Actor 96.0% 97.1%
MinerU 4.2.1, Nov 12 99.7% Not run

Each number is the share of true words found in reading order. I ran its pdf2markdown project as shipped, but with the English model, on the Mac CPU at background priority.

26.5 sa scan B page

57.2 sa two-column page

6.6 GBpeak memory

Two columns come out mixed

A made-up two-column page with each text block boxed in red and numbered in the order PDF-Extract-Kit writes it to Markdown. Block 1 is the title. Blocks 2, 4 and 5 are on the left, block 3 is on the right.
One two-column page, numbered in the order its Markdown step writes the blocks.

The Markdown step sorts blocks by their top edge. So a block high in the right column goes before a lower block on the left:

return ymin*3000 + xmin

It still read 93.2% of the words, in any order. Its own docs say merge2markdown supports "only simple single-column text" and point to MinerU.

The default model glues English words

True Read as
By Blake Foster, On hold desk ByBlakeFoster,Onholddesk
name of herring could one of the yacht's boats nameofherringcouldoneoftheyacht'sboats

pdf2markdown.yaml sets lang: ch with the Chinese PP-OCRv4 models. On one two-column page it got 6 of 729 words right.

On 3 scan B pages it got 86.3%, against 91.9% with the English model. To switch, set lang: en and delete the rec_model_dir line:

  ocr:
    model: ocr_ppocr
    model_config:
      lang: en
      show_log: True
      det_model_dir: models/OCR/PaddleOCR/det/ch_PP-OCRv4_det
      det_db_box_thresh: 0.3

Some lines come out twice

It runs OCR on every text box, and some boxes sit inside others. On scan B, 43 lines were read twice.

It wrote 2,361 words for the 1,955 true words of scan B. Tesseract wrote 2,039.

Three fixes to install it in 2026

git clone https://github.com/opendatalab/PDF-Extract-Kit.git
cd PDF-Extract-Kit
uv venv -p 3.10 .venv
sed -i.bak 's/doclayout-yolo==0.0.2$/doclayout-yolo==0.0.2b1/' requirements-cpu.txt
VIRTUAL_ENV=.venv uv pip install -r requirements-cpu.txt
VIRTUAL_ENV=.venv uv pip install pyarrow==20.0.0 setuptools
Weights download and run command
.venv/bin/python -c "
from huggingface_hub import snapshot_download
snapshot_download('opendatalab/PDF-Extract-Kit-1.0', local_dir='.',
  allow_patterns=['models/Layout/YOLO/doclayout_yolo_ft.pt',
  'models/MFD/YOLO/yolo_v8_ft.pt', 'models/MFR/unimernet_tiny/*',
  'models/OCR/PaddleOCR/det/ch_PP-OCRv4_det/*',
  'models/OCR/PaddleOCR/rec/ch_PP-OCRv4_rec/*'])"
.venv/bin/python project/pdf2markdown/scripts/run_project.py \
  --config project/pdf2markdown/configs/pdf2markdown.yaml

Set inputs and outputs in the YAML first. PaddleOCR also downloads small models into ~/.paddleocr on the first run.

MinerU took over

For a scan in 2026, use MinerU instead. On scan B it beat every other reader in the first table, and it got 970 of 972 words in order on a two-column German page.

Same pages through our Actor

Our Apify Actor, PDF to Markdown OCR, reads scanned PDFs and returns Markdown, with nothing to install. On the two-column pages it kept 97.1% of words in order.

What I tested, and what I did not

How I tested
  • Code: opendatalab/PDF-Extract-Kit at its last commit, fdb25fd4. Weights: the PDF-Extract-Kit-1.0 repo files its config names.
  • Python 3.10, paddleocr 2.7.3, paddlepaddle 3.3.1, torch 2.3.1, doclayout-yolo 0.0.2b1, unimernet 0.2.1.
  • The pdf2markdown config as shipped, with visualize off. The English runs: lang: en, no rec_model_dir.
  • Scan B: 10 public domain book pages, page images at 300 ppi. The code renders every PDF page at 144 dpi.
  • Two columns: 10 made-up pages, drawn in a browser and given a light scan look (small tilt, noise, JPEG), one 227 ppi gray image each, with a title, a byline and 2 columns of plain text.
  • Score: true words found in order, after Unicode cleanup. Tesseract 5.5.4, eng from tessdata_fast, psm 3.
  • Seconds: the whole run over its pages, model load included, with OMP_NUM_THREADS=1 at background priority (nice 19, taskpolicy -b). Two PDF-Extract-Kit runs at a time on an Apple M5 Max, shared with other jobs.
Not tested
  • Formulas and tables. No test page had either.
  • A GPU. As shipped, the formula steps use CUDA if present, else the CPU. Layout uses the CPU unless the config names a device.
  • The LayoutLMv3 layout model, or the newer weight files.
  • MinerU on the two-column pages, and the pdf-extract-kit package on PyPI.
Sources

Questions people ask

What is PDF-Extract-Kit?

An AGPL-3.0 toolkit from opendatalab, the team behind MinerU. It finds layout boxes with DocLayout-YOLO, finds and reads formulas, and reads text with PaddleOCR. Its last code commit was on January 3, 2025.

Is PDF-Extract-Kit the same as MinerU?

No. MinerU is the full PDF to Markdown tool. Up to version 3.4.5 it downloaded its pipeline weights from PDF-Extract-Kit's repos. Version 4.0.0 moved to its own weight packs.

Does PDF-Extract-Kit keep the order of two columns?

No. Its Markdown step sorts blocks from top to bottom. On 10 two-column pages, 50.9% of words came out in reading order, but it read 93.2% of them.