file2markdown
pdfocrscanned pdfmarkdownconverter

Converting a PDF With Both Scanned and Text Pages to Markdown

November 26, 2026

Most guides on scanned PDFs assume the whole file is one big image. In practice, a lot of real documents are not that clean: a contract with a scanned signature page stapled to the end, a report where someone dropped in a few photographed whiteboard slides, or a textbook chapter where a handful of pages were scanned from a library copy and the rest came from a digital source. These are mixed PDFs, part real text, part scanned image. A converter that only reads a PDF's text layer has nothing to return for the scanned pages.

file2markdown handles this case directly: it goes through the PDF page by page and converts every page that has real text. On Pro it also runs OCR on the first few scanned pages. Every scanned page it does not convert is marked in the output, on every plan.

How file2markdown Reads a Mixed PDF

The conversion goes through the file in page order. Pages with a real text layer are converted normally on every plan, same as any other PDF: headings, lists and tables come through as Markdown.

What happens to the scanned pages depends on your plan:

  • Free: each scanned page is replaced by a one-line marker, something like "Page 4 is a scanned image and was not converted. OCR for scanned pages is a Pro feature," and the result notice offers the upgrade. The text pages around it still convert normally.
  • Pro: scanned pages are OCR'd with Claude vision, one page at a time, for as long as the 60-second conversion window allows. Measured on 15 Nov 2026, OCR took about 7 seconds per page, so a mixed file typically gets roughly its first 4 or 5 scanned pages converted before the window runs out. Scanned pages after that are marked as not converted, with a note that the conversion ran out of time. The hard cap on scanned pages is 50, but for a mixed file the 60-second limit is the real constraint, not the page count.

If a single scanned page fails OCR for some other reason, only that page is marked. The rest of the document, text and already-OCR'd scans alike, is kept.

One detection detail worth knowing: file2markdown decides a page is "scanned" based on whether it is a full-page image. A text page that happens to include one small picture or a logo is not treated as a scan, it still converts as text. But if the first five pages of the PDF have no text at all, the whole file is handled as a fully scanned PDF rather than a mixed one, even if real text pages show up later. If that's your situation, see our dedicated guide to converting a fully scanned PDF instead, since the per-page mixed logic described here won't apply.

Converting a Mixed PDF, Step by Step

  1. Go to the PDF to Markdown converter.
  2. Upload the file. There is no setting to flip. The converter detects text and scanned pages automatically.
  3. On Free, review the output: text pages will be clean Markdown, scanned pages will show the "not converted" marker.
  4. On Pro, the same text pages convert, plus roughly the first handful of scanned pages via OCR. Any scanned pages the conversion did not reach within the 60-second window show a marker saying it ran out of time.
  5. Look for the notice that comes with the result. When scanned pages were left out, it says so: "Some pages are scanned images and were not converted. Each one is marked in the output." That tells you what to double-check instead of trusting the output blindly. Over MCP, the same flag is in the quality field of the result.

A Common Case: Scanned Appendices in an Otherwise Digital Report

The pattern that triggers this most often is a born-digital report, memo, or chapter with a small number of scanned pages tacked on, a signed cover sheet, a few photographed pages from an older source, a handwritten form. A converter that only reads the text layer has nothing to return for those pages, and unless it tells you so, the output looks complete.

Because file2markdown marks every page it couldn't convert, you get a reliable signal of exactly which pages need a second look, rather than a document that looks complete but has quietly lost content. That matters most when the Markdown is headed into a pipeline where no one is re-reading the source PDF, for example chunking it for a vector database or feeding it to an LLM. For more on why that intermediate format matters, see why Markdown works well for RAG pipelines.

If your documents are mostly text with normal tables, our guide on extracting tables from PDFs covers how those come through; it's the scanned pages, not the text ones, where OCR and the 60-second window come into play.

Choosing Between Free and Pro for Mixed Files

If a file has only one or two scanned pages buried in an otherwise text-based document, Free will convert everything else and clearly flag the scans you still need to handle manually. If scanned pages are a regular part of your workflow, for example recurring reports with a scanned cover page, Pro converts the first few scanned pages of each file with OCR (roughly 4 or 5 within the time limit) and marks any it does not reach. Our broader comparison of PDF to Markdown converters covers how file2markdown compares with other tools if you're still deciding.

Frequently Asked Questions

How does file2markdown know which pages are scanned?

It looks for pages that are a full-page image with no text layer. A text page with a small embedded picture or logo is not treated as scanned and converts normally as text.

Will all the scanned pages in my file get OCR'd on Pro?

Not necessarily. OCR runs one page at a time within a 60-second conversion window, and at roughly 7 seconds per page (measured 15 Nov 2026), that's typically the first 4 or 5 scanned pages. Any scanned pages after that are marked as not converted, with a note that the conversion ran out of time.

What if my PDF is entirely scanned, not just a few pages?

If the first five pages have no text at all, file2markdown treats the whole document as a scanned PDF rather than applying the mixed-page logic in this guide. See our scanned PDF to Markdown guide for that case.

How do I know which pages didn't convert?

Each skipped or failed page is marked individually in the output, at the place where that page belongs. The result also says when pages were left out (a notice on the web, the quality field over MCP), so you can search for the markers instead of reading the whole document end to end.

Ready to try it on your own file? Convert a PDF now, or see Pro pricing if you expect scanned pages regularly.

The Markdown Memo

A fortnightly note for lawyers, researchers, accountants, and anyone else drowning in PDFs, scans, and decks. No spam.