PDF to Markdown Offline: Formulas, Tables, and Code
Standard text extraction breaks down quickly on research papers, textbooks, and scanned handouts: two-column prose merges across gutters, equations turn into scattered symbols, and tables lose their column boundaries.
DocWeave runs visual document recognition models locally on your iPhone, iPad, or Apple Silicon Mac. Once the model weights are downloaded, recognition runs completely offline without uploading your files to any server.
Choosing between MinerU and OvisOCR2
DocWeave includes two local engines so you can match model capability to your hardware memory:
| Comparison | MinerU | OvisOCR2 |
|---|---|---|
| Download size | ~2.5 GB | ~0.6–1 GB (varies by device) |
| Device RAM requirement | At least 8 GB RAM (iPhone 15 Pro+, M1+ iPad/Mac) | At least 6 GB RAM (iPhone 12 Pro / 13 Pro / 14+) |
| Free RAM before loading | Keep at least 5 GB free RAM | Keep at least 3 GB free RAM |
| Best suited for | Multi-column papers, dense LaTeX equations, complex tables, Reconstructed PDF | Everyday notes, faster throughput, lower memory footprint |
Under Settings → Models, DocWeave runs an automatic environment preflight check below each model card. If free RAM is tight, close memory-intensive background apps first or switch to OvisOCR2 on 6 GB devices.
Downloading weights with resume support
- Open Settings → Models in DocWeave.
- Tap Download Model for MinerU or OvisOCR2. On metered cellular connections, the app prompts for confirmation before starting.
- If the download is interrupted, return to Settings later and tap Resume Download to continue from saved progress.
Picking the right export format
While a document is running, the Live Preview panel updates as each page finishes. If the app closes midway through a long PDF, reopen DocWeave, select the task, and tap Continue Recognition to resume from the last completed page.
| Export Format | What it produces | Ideal use cases |
|---|---|---|
| Markdown | Structured headings, LaTeX math, tables, and a neighboring images/ folder | Obsidian, Notion, Git repositories, and LLM RAG pipelines |
| Reconstructed PDF | Redrawn layout with typeset LaTeX inline and block equations | Re-typesetting poor scans with crisp typography |
| Searchable PDF | Original scanned visuals overlaid with an invisible selectable text layer | Archiving scans that must keep their exact appearance |
| EPUB | Reflowable standard e-book | Comfortable mobile reading in Apple Books or e-readers |
| MinerU Package | Source PDF, content_list.json, and extracted figures | Opening in DoCube for block proofreading or full translation |
If your starting material is still on paper or inside a scrolling mobile webpage, see Scan Book Pages and Stitch Scrolling Captures.