DocViso
All guides

From scan to Markdown: turning paper into text you can actually use

A scan is a picture until something reads it. How layout reconstruction works, what it gets right, and where it still needs your eyes.

Nov 12, 20266 min readDocViso

Copying a contract into a notes app by hand takes an hour. A scan plus text recognition takes a minute — but only if the recognition understands that the page had headings, columns and lists, instead of returning one long line of words.

Text and structure are two different problems

OCR gives you words with bounding boxes. That is enough to make a searchable PDF, and it is not enough to make a document you want to read.

Layout reconstruction is the second step: grouping lines into blocks, deciding which block is a heading by its size relative to the body text, noticing that a list starts with a bullet, separating two columns that share a horizontal band, and joining hyphenated breaks at line ends.

Why Markdown is the right target

Markdown carries exactly the structure OCR can reliably recover — headings, lists, quotes, paragraphs — and nothing more. It is plain text, so it survives in any notes app, git repository, wiki or knowledge base, and it converts to HTML, PDF and docx with a single command.

It is also a better archive format than a Word file: a Markdown file will still open in thirty years, and a diff of two versions is readable by a human.

What it gets right, and what it does not

  • Reliable: headings, bulleted and numbered lists, paragraphs, block quotes, line-break hyphenation, running headers and footers.
  • Usually right: two-column layouts, simple tables, captions, all-caps titles.
  • Still needs you: merged table cells, footnotes, mathematical notation, handwriting, and anything where the source used colour to carry meaning.

A workflow that pays for itself

Scan the page, let the app reconstruct it, export Markdown, then open it in whatever you actually write in. Put the Markdown next to the original PDF so the picture remains the evidence and the text remains the working copy.

For a document you will quote from — a contract clause, a policy, a specification — the Markdown version is what you search, and the PDF is what you send.

Export Markdown alongside the searchable PDF: the PDF is the record, the Markdown is the working copy you can edit, diff and search.

Scan your first document in under a minute

Free to install, no account, nothing uploaded. The whole scanner runs on your phone.

iOS 17+ · Android 8+ · Unlimited free scans