Scanned PDF to Markdown: An OCR Workflow You Can Verify
To turn a scanned PDF into editable Markdown, recognize its text with OCR, then save the result as .md. For a single document, start with our browser converter. For a scripted collection, use the Docling workflow below.
Recognize scanned pages in your browser
- Open the PDF-to-Markdown converter and select your PDF.
- If you need only part of it, open Advanced settings and enter a range such as
2,4-5. Leave the range empty for all pages. - Select Convert to Markdown. The tool identifies pages with no extracted text.
- Use the separate OCR controls, choose the document language and run recognition.
- Compare a recognized page with the original, correct any important errors and download the Markdown.
The supported printed-text language choices cover Chinese, English, French, Spanish and Russian. PDF processing and recognition run on your device; the webpage loads assets or models and sends basic usage statistics without document names or contents. Current limits are 20 MB, 100 pages in the source PDF and 500,000 output characters.
Check a real recognition error
Original PDF, page 2. The final line reads “This example was created for AI Tools Pick.”

Actual English OCR output from the saved sample.
This example was created for Al Tools Pick.
OCR read the capital I as a lowercase l. Compare the name with the source page, change it to AI Tools Pick in the page editor, then select Save page changes and download the corrected Markdown. Check identifiers and numbers the same way.
Try the original PDF or download the actual OCR output with its page images. The saved example contains the recognition error above.
When words are still missing
Use page comparison to inspect the original beside the recognized text. Check names, product codes, decimal points and minus signs first. A readable sentence can still contain an incorrect identifier.
After ordinary OCR, Enhanced retry offers an alternative based on regions of the scanned page. Retry an eligible page, compare the candidate with your current text, then choose whether to apply it or keep the current result. Some words may improve while others regress, so choose using the source page.
The browser tool offers OCR only for pages with no extracted text. If a page already has an incomplete or damaged text layer, it is not automatically eligible. A faint source image or watermark can also limit recognition. Obtain a clearer scan when possible; do not fill unreadable values from context.
Use Docling for a Python workflow
For a repeatable script or a larger collection, install Docling in a separate environment using its installation instructions. Select an OCR backend supported by your system. The documentation includes the RapidOCR extra:
python -m venv .venv
Activate the environment using your shell's normal command, then install:
python -m pip install "docling[rapidocr]"
This adaptation of the official quickstart saves Markdown as UTF-8:
from pathlib import Path
from docling.document_converter import DocumentConverter
result = DocumentConverter().convert("sample.pdf")
Path("sample.md").write_text(
result.document.export_to_markdown(), encoding="utf-8"
)
Start with a short sample before processing the folder. If the normal configuration skips text you need recognized, follow Docling's full-page OCR example for your installed version. It uses OcrMode.FULL_PAGE with a configured backend. Install that backend's dependencies too.
Docling downloads models on first use by default. For offline work, follow its model prefetching instructions before disconnecting.
Review the part you plan to reuse
Read a complete paragraph across any column or page boundary. Check that captions and repeated footers have not interrupted it. For a table, match each number to its header and unit using the table guide.
Keep the PDF and source-page references with unresolved passages. Once the sample is useful, preserve the settings and move to the batch Python workflow. If you need Word editing instead, use the PDF-to-Word guide.
Sources and review: Docling installation, quickstart, full-page OCR and offline documentation linked above; browser features checked against the current source-owned tool. Reviewed October 26, 2026. The Python example is syntax-checked and documentation-based.