doc2mark
doc2mark converts documents into Markdown and structured Python objects. It supports PDFs, modern Office files, images, text/data files, markup files, and legacy Office files through LibreOffice.
The default Python API is safe for text-only extraction without OCR credentials. OCR providers are initialized only when OCR is requested.
User Guide
- Quickstart
- Command Line
- Supported formats & how each is handled
- How a format is detected
- Extension → processor → OCR
- Office formats (DOCX, PPTX, XLSX)
- Legacy Office formats (DOC, PPT, PPS, XLS, RTF)
- Images (PNG, JPG, JPEG, WEBP, TIFF, TIF, BMP, GIF, HEIC, HEIF, AVIF)
- Text & data (TXT, CSV, TSV, JSON, JSONL)
- Markup (HTML, XML, Markdown)
- Email (EML)
- Choosing whether OCR runs
- OCR
- Content-aware OCR policy
- Complex Table Preservation
- Contextual OCR strategy
- OCR Result Caching