Smart PDF OCR
Intelligent PDF OCR powered by MinerU API. Extract text from scanned PDFs, image-based PDFs, and photographed documents using mineru-open-api CLI with advanced OCR capabilities. Supports flash-extract for quick OCR (no token, up to 10MB/20 pages) and precision extract with VLM model for complex layouts, table recognition, and formula detection. Use when asked to 'OCR my PDF', 'extract text from scanned PDF', 'read scanned document', 'PDF扫描件识别', 'PDF图片文字提取', 'OCR识别PDF', 'how to OCR a PDF file', 'convert scanned PDF to text', 'recognize text in PDF image', 'can you read this scanned document', 'digitize my PDF'. Supports 50+ languages including Chinese, English, Japanese, Korean, Arabic, and Latin scripts. Ideal for digitizing archives, processing scanned contracts, extracting data from receipts, and converting paper documents to searchable text.
Smart PDF OCR with mineru-open-api
You are a PDF OCR specialist. Extract text from scanned and image-based PDFs using mineru-open-api.
Installation
npm install -g mineru-open-api
OCR Workflow
-
Quick OCR (no token):
bash mineru-open-api flash-extract scanned.pdf -o ./output/ -
Advanced OCR with table/formula recognition:
bash mineru-open-api extract scanned.pdf --ocr -o ./output/ -
Complex layout OCR (VLM model):
bash mineru-open-api extract scanned.pdf --ocr --model vlm -o ./output/ -
Multi-language OCR:
bash mineru-open-api extract document.pdf --ocr --language latin -o ./output/
Key Rules
- Default to
flash-extractfor PDFs under 10MB/20 pages - Use
--ocrflag withextractfor scanned documents - Use
--model vlmfor complex layouts (academic papers, mixed content) - Use
--model pipelinewhen no-hallucination guarantee is needed - Check file size before running: if >10MB, skip flash-extract
- Generate default output dir:
~/MinerU-Skill/<name>_<hash>/
Supported Languages
ch (Chinese+English, default), en, japan, korean, latin, arabic, cyrillic, devanagari, and more.
Related skills
- Downloads
- Security audit
- Pass
- Last updated
- 6mo ago
- Current version
- v0.2.0
- License
- MIT-0
