Convert and extract content from .pdf using MinerU (mineru-open-api).
npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest
# Extract tables from PDF (requires token)
mineru-open-api extract report.pdf -o ./out/
# With explicit table flag and OCR for scanned docs
mineru-open-api extract scanned.pdf --ocr --table -o ./out/
Token required for extract and crawl:
mineru-open-api auth # Interactive token setup
export MINERU_TOKEN="your-token" # Or via environment variable
Create token at: https://mineru.net/apiManage/token
mineru-open-api auth or MINERU_TOKEN env)--language (default: ch, use en for English)--pages (where applicable)extract with token. flash-extract does NOT support tables. Use --table flag (enabled by default).-o to save to file-o flag (cannot stream to stdout)共 1 个版本