Repository navigation
What's New in v0.6.1
Performance & UX Improvements
- Truly Lazy OCR Engine Detection: Replaced eager
import paddleocr/import pytesseractinsidedetect_ocr_engine("auto")with lightweightimportlib.util.find_spec(...)checks — avoiding heavy PaddlePaddle / PaddleX / OpenCV imports and startup latency until OCR is actually needed. - Deferred OCR Resolution in
convert_pdf: Pure digital PDFs in--ocr automode now extract text and tables immediately without touching PaddleOCR orpypdfium2, recordingocr_engine: "not_needed"in metadata. - Now on PyPI: Install directly via
pip install document-to-markdown(https://pypi.org/project/document-to-markdown/).
Quick Install
# Base install (PDF, DOCX, PPTX, Excel, EML, HTML, CSV/TSV)
pip install document-to-markdown
# Recommended: add PaddleOCR + PP-Structure layout/table analysis
pip install "document-to-markdown[ocr]"
# Optional Outlook .msg support (BSD olefile) or all extras
pip install "document-to-markdown[outlook]"
pip install "document-to-markdown[all]"Quick Usage
# Instant native PDF / Office conversion (PaddleOCR only loads if a scanned page is detected)
document-to-markdown report.pdf --mode ai
# Fast CPU OCR mode for scanned PDFs and images
document-to-markdown scan.pdf --mode ai --ocr-profile mobilePrebuilt Assets
Download standalone executables for Windows (x64 .exe), Linux (x64), and macOS (arm64), or install the .whl / .tar.gz packages attached below.