Skip to main content

PDF to Markdown Offline: Formulas, Tables, and Code

· 3 min read

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:

ComparisonMinerUOvisOCR2
Download size~2.5 GB~0.6–1 GB (varies by device)
Device RAM requirementAt least 8 GB RAM (iPhone 15 Pro+, M1+ iPad/Mac)At least 6 GB RAM (iPhone 12 Pro / 13 Pro / 14+)
Free RAM before loadingKeep at least 5 GB free RAMKeep at least 3 GB free RAM
Best suited forMulti-column papers, dense LaTeX equations, complex tables, Reconstructed PDFEveryday 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​

  1. Open Settings → Models in DocWeave.
  2. Tap Download Model for MinerU or OvisOCR2. On metered cellular connections, the app prompts for confirmation before starting.
  3. 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 FormatWhat it producesIdeal use cases
MarkdownStructured headings, LaTeX math, tables, and a neighboring images/ folderObsidian, Notion, Git repositories, and LLM RAG pipelines
Reconstructed PDFRedrawn layout with typeset LaTeX inline and block equationsRe-typesetting poor scans with crisp typography
Searchable PDFOriginal scanned visuals overlaid with an invisible selectable text layerArchiving scans that must keep their exact appearance
EPUBReflowable standard e-bookComfortable mobile reading in Apple Books or e-readers
MinerU PackageSource PDF, content_list.json, and extracted figuresOpening 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.