How to extract text from a PDF (scanned pages included)
Not every PDF has real text. Learn the difference between digital PDFs and scanned PDFs, and how to pull clean Markdown out of either.
Updated July 10, 2026·7 min read·Textify Image
PDF is a container, not a guarantee that text is selectable. Some PDFs are born digital — exported from Word, Google Docs, or a design tool — with a real text layer. Others are scans: each page is an image glued into a PDF wrapper. Both open the same way in a viewer, but only one lets you copy a paragraph with your mouse.
This guide explains how to tell them apart, when you need OCR, and how to extract usable text with Textify Image.
Two kinds of PDFs
1. Text-based (born-digital) PDFs
You can highlight words, search inside the file, and copy paste usually works. Extraction can be done without OCR: many tools read the text layer directly.
2. Image-based (scanned) PDFs
You cannot select letters cleanly — the cursor grabs a whole page image. Search finds nothing useful. These need OCR: the same process used for photos of paper.
Many real-world files are hybrid: a digital cover page plus scanned attachments, or a scan that someone ran through a cheap OCR pass years ago with messy hidden text.
Quick test: do you need OCR?
- Open the PDF.
- Try to select a sentence in the middle of a page.
- If selection works and the paste looks correct, you may not need OCR.
- If selection fails or paste is gibberish, use OCR.
When in doubt, run OCR anyway on a short sample page. Layout-aware engines often still produce cleaner structure than a broken text layer.
Extract text from a scanned PDF with Textify Image
- Go to the converter.
- Upload the PDF (multi-page is supported; keep the file under 50 MB).
- Wait for recognition to finish.
- Preview the Markdown — check headings and tables on the first few pages before you trust a long document.
- Copy or download the
.mdfile.
Large scans take longer. If a file is huge, split it into chapter-sized PDFs first (many OS tools can extract page ranges). Smaller jobs are easier to review and re-run if one section fails.
Keeping structure across pages
Scanned books and reports often share problems across every page:
- Running headers (“Chapter 3 · Budget”) repeating on each page
- Page numbers at the bottom
- Footnotes that interrupt the main flow
A layout-aware result will usually separate body text from some of these, but you should still skim. A two-minute cleanup pass on headers and footers is normal for long scans.
Tables in PDFs
Financial statements and research appendices are where people need OCR most — and where mistakes hurt most. After conversion:
- Confirm column headers survived
- Spot-check a few numeric cells against the original
- Prefer fixing one bad row over retyping the whole table
See OCR for tables for more detail.
Quality tips for scanned PDFs
- 300 DPI (or better) scans of letter/A4 pages are a solid default. Very low DPI shrinks thin strokes until letters merge.
- Black-and-white or grayscale is often cleaner than a color photo of a page under yellow lighting.
- Deskew in your scanner software if pages are crooked — straight lines help column detection.
- One language per pass when a document mixes scripts heavily; crop or split if needed.
Searching and archiving after extraction
Once you have Markdown or plain text:
- Store the text next to the original PDF for search
- Keep the PDF as the legal or visual source of truth
- Note the conversion date if accuracy matters for compliance workflows
OCR is a convenience layer, not a certified archival replacement unless your process says otherwise.
Privacy and multi-page documents
Long PDFs often contain more sensitive data than a single screenshot. Before upload:
- Remove pages you do not need
- Confirm you are allowed to process the document in an online tool
- Use redaction on the source PDF when policy requires it
Textify Image processes files to produce your text and does not keep them after the job — details in the Privacy Policy.
Troubleshooting
| Symptom | Try this |
|---|---|
| Empty or tiny output | Confirm the PDF is not password-locked; unlock or export pages |
| Only first page looks good | File may mix digital and scanned pages — split and re-run |
| Columns read in wrong order | Common on multi-column magazines; convert page-by-page or crop columns |
| File rejected for size | Compress images inside the PDF or split the document |
Related guides
Extracting text from a PDF is straightforward once you know whether the file already has a text layer. For scans, layout-aware OCR turns page images into something you can edit, quote, and search — without starting from a blank keyboard.
Try it on your own file
Drop an image or PDF into Textify Image and get layout-aware Markdown back — free to start, no account required.
Open converter