Skip to content

Releases

v0.6.1 — Truly Lazy OCR Loading for Instant Digital PDF Conversion

Choose a tag to compare

@github-actions github-actions released this 26 Nov 07:16

What's New in v0.6.1

Performance & UX Improvements

  • Truly Lazy OCR Engine Detection: Replaced eager import paddleocr / import pytesseract inside detect_ocr_engine("auto") with lightweight importlib.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 auto mode now extract text and tables immediately without touching PaddleOCR or pypdfium2, recording ocr_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 mobile

Prebuilt Assets

Download standalone executables for Windows (x64 .exe), Linux (x64), and macOS (arm64), or install the .whl / .tar.gz packages attached below.

v0.6.0 — 100% Permissive Stack, MIT + Commons Clause & Broad Office Support

Choose a tag to compare

@github-actions github-actions released this 26 Nov 05:33

What's New in v0.6.0

100% Permissive Dependency Stack & License Update

  • License: Switched to MIT License with Commons Clause v1.0 (source-available) — free for personal, research, educational, and internal business use; commercial resale / competing hosted SaaS requires a commercial license from hotroso.
  • PDF Engine (pdfplumber + pypdfium2): Replaced PyMuPDF (AGPL-3.0) with MIT-licensed pdfplumber + Apache-2.0/BSD pypdfium2, adding native ruled-table detection for digital PDFs while preserving multi-column clustering, repeated header/footer removal, password support, and high-DPI OCR rendering.
  • Outlook .msg (olefile): Replaced extract-msg (GPL-3.0) with a native OLE2/MAPI .msg parser powered by BSD-2-Clause olefile.
  • Excel Formulas (xlcalculator): Replaced formulas (EUPL-1.2) with MIT-licensed xlcalculator alongside cached Excel values and external LibreOffice recalculation.

Full Format Coverage (from v0.5.0 & v0.6.0)

  • PDF (.pdf) — hybrid native text/tables + automatic OCR on scanned/image-heavy pages
  • Images (.png, .jpg, .jpeg, .webp, .bmp, .tif, .tiff) — EXIF auto-rotation, multi-frame TIFF, PP-StructureV3 / PaddleOCR + Tesseract fallback
  • Word (.docx) — zero-dependency OOXML parsing (headings, nested lists, merged-cell tables, hyperlinks, tracked-deletion filtering, footnotes, --assets)
  • PowerPoint (.pptx) — zero-dependency OOXML parsing (true slide order, reading order, bullets, tables, speaker notes, --assets)
  • Excel (.xlsx, .xlsm) — multi-table sheet splitting, merged cells, 3-tier formula evaluation
  • Email (.eml, Outlook .msg) — headers table, plain/HTML body, quoted replies, attachments & --assets
  • HTML & Tabular (.html, .htm, .csv, .tsv) — clean semantic HTML (code blocks, blockquotes, colspan/rowspan tables) and auto-delimiter CSV/TSV

Quick Install

# Base install (PDF, DOCX, PPTX, Excel, EML, HTML, CSV/TSV)
pip install "git+https://github.com/hotroso/document-to-markdown.git@v0.6.0"

# Recommended: add PaddleOCR + PP-Structure layout/table analysis
pip install "document-to-markdown[ocr] @ git+https://github.com/hotroso/document-to-markdown.git@v0.6.0"

# Optional Outlook .msg support (BSD olefile)
pip install "document-to-markdown[outlook] @ git+https://github.com/hotroso/document-to-markdown.git@v0.6.0"

Quick Usage

# Convert PDF or scanned docs to AI/RAG-ready Markdown (fast CPU mode)
document-to-markdown report.pdf --mode ai --ocr-profile mobile

# Convert PowerPoint with speaker notes and exported slide images
document-to-markdown deck.pptx --assets

Prebuilt Assets

Download standalone executables for Windows (x64 .exe), Linux (x64), and macOS (arm64) (bundling pdfplumber, pypdfium2, openpyxl, olefile, and pytesseract), or install the .whl / .tar.gz packages attached below.