What is the difference between scanned and text-based PDFs for data extraction?

Text-based PDFs contain embedded, selectable text readable directly from the file structure. Scanned PDFs are rasterized images of physical or digital documents, with no embedded text at all. Every character visible on screen exists only as pixels, which means OCR must run before any extraction tool can return usable text. Many documents mix both. A scanned contract may have a text-based cover page and OCR-resistant signature blocks mid-document.

FactorText-based PDFScanned PDF
Text accessDirectly readableRequires OCR
Extraction speedFastSlower (OCR inference)
Table accuracyHigh for structured layoutsDepends on scan quality
Copy-paste in viewerWorksBlocked or garbled
Parser compatibilityMost tools workNeeds dedicated OCR pipeline

Knowing which type you have matters before choosing a parsing approach. Faxed forms, signed paper records, and older archives are usually scanned, while reports exported from Word or a reporting tool are text-based. When a library returns empty strings or garbled output, a scanned source is usually why.

Firecrawl handles both types automatically. For web-hosted PDFs, Firecrawl /scrape detects scanned pages and runs OCR on them. For local or non-public documents, upload the file to Firecrawl /parse, which has the same modes. The default auto mode extracts embedded text and falls back to OCR for image-only pages. Set mode to ocr on the PDF parser to force OCR on every page:

from firecrawl import Firecrawl
 
firecrawl = Firecrawl(api_key="fc-YOUR-API-KEY")
 
doc = firecrawl.scrape(
    "https://github.com/ocrmypdf/OCRmyPDF/raw/main/tests/resources/skew.pdf",
    formats=["markdown"],
    parsers=[{"type": "pdf", "mode": "ocr"}],
)
 
print(doc.markdown[:52])  # # The LinnSequencer 32 Track MIDI Sequence Recorder

That file is a one-page scanned product sheet from the OCRmyPDF test suite, with no embedded text. On Oct 30, 2026 it came back as clean markdown with the heading and bullet list intact, for 1 Firecrawl credit. OCR pages cost the same 1 Firecrawl credit per page as text pages. The underlying PDF parsing engine, Fire-PDF, classifies each page in milliseconds by reading the PDF's internals, so text-based pages skip OCR and only image-only pages reach the GPU. For a comparison of how different AI PDF parsers handle scanned and text-based content, including Docling, Marker-PDF, and LlamaParse, see the best PDF parsers guide.

Last updated: Oct 30, 2026
//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options