How Browser-Local PDF Text-Stream Extraction Works
Digital PDFs store words inside compressed content streams alongside font positioning coordinates rather than semantic HTML tags. ConvertToMD decompresses FlateDecode streams directly in memory, resolves custom ToUnicode font CMaps, handles UTF-16BE hex strings and PDF literal escapes, and groups positioned glyph runs into logical reading lines without uploading confidential documents to any cloud API.
Once text lines are reconstructed, heuristic formatting detects section headers, numbered or bulleted lists, and hard-wrapped print line breaks. Use the built-in Wrap Repair or Cleanup transform inside the output panel whenever academic papers or multi-column exports leave broken mid-sentence newlines before feeding the file into ChatGPT, Claude RAG chunkers, or an Obsidian literature note.
PDF Structure Handling & Conversion Capabilities
| PDF Content Feature | Browser Parser Behavior | Recommended Cleanup |
|---|---|---|
| Text-based PDFs (FlateDecode) | Decompressed & decoded via ToUnicode CMap locally | Copy or export with YAML frontmatter |
| Hard-wrapped print columns | Preserved per coordinate line initially | Toggle Unwrap Hard Line Breaks |
| Bulleted & numbered sections | Normalized to standard - and 1. Markdown syntax | Ready for RAG heading splitting |
| Image-only / scanned PDFs | Reports missing embedded text layer honestly | Run Tesseract/Vision OCR first if scanned |
Browser PDF Extraction vs. Cloud OCR & Python CLI Tools
For native digital PDFs (reports, invoices, manuals, whitepapers), browser-local extraction runs instantaneously with strict privacy. If your file is a camera scan or flattened image PDF with zero embedded text streams, pair a dedicated OCR tool such as Tesseract or Vision OCR before converting the extracted text to Markdown.