PDF to Markdown & Text Extractor with OCR avatar

PDF to Markdown & Text Extractor with OCR

Pricing

from $3.00 / 1,000 document extracteds

Go to Apify Store
PDF to Markdown & Text Extractor with OCR

PDF to Markdown & Text Extractor with OCR

Convert PDFs to text and Markdown for AI, RAG and search. Reads the text layer, runs OCR only on scanned pages, keeps headings and two-column reading order, strips repeated headers and footers. PNG/JPG images too. No start fee: pay per document and per page.

Pricing

from $3.00 / 1,000 document extracteds

Rating

0.0

(0)

Developer

Signalloom

Signalloom

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

38 minutes ago

Last modified

Features

Limited permissions

Share

Turn PDFs and scanned documents into clean Markdown, plain text and JSON, ready for AI agents, RAG pipelines, search indexes and spreadsheets. Give it links; get back one row per document.

  • Reads the PDF's own text layer first: fast, exact, cheap.
  • OCR only where it's needed: pages with no text (scans, photos, faxes) go through Tesseract OCR automatically. You pay for OCR only on those pages.
  • Readable Markdown, not a text dump: headings from font sizes, paragraphs re-joined, hyphenated words fixed, bullet and numbered lists kept, two-column pages read column by column, repeated headers, footers and page numbers removed.
  • Page markers (<!-- page 3 -->) and a per-page array, so you can cite the page an answer came from.
  • Images too: PNG, JPEG, WebP and TIFF files are OCR'd.
  • No start fee. A 6-page PDF with a text layer finishes in under 5 seconds.

Use this when…

  • you need PDF to Markdown or PDF to text for an LLM, a RAG knowledge base or a vector database
  • you have scanned PDFs or document photos and need the text (OCR) without setting up Tesseract yourself
  • you process reports, filings, contracts, manuals, invoices or research papers in bulk from links
  • you want clean text from two-column PDFs (papers, government forms, brochures) in reading order
  • an AI agent needs to read a PDF from a URL

For AI agents

  • Run signalloom/pdf-text-extractor (Apify MCP server call-actor, or the Apify API) with input like {"documentUrls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf"]}.
  • Returns one dataset row per document: markdown (whole document, with <!-- page N --> markers), text, pageCount, ocrPages, wordCount, title, author, and a pages array (page, method, markdown).
  • Typical cost: $0.003 per document + $0.0001 per text page; scanned pages are $0.006 per OCR page instead. A 6-page text PDF costs $0.0036; errors and blank pages are free.

How to use it

  1. Paste Document links, one per line: public PDF or image links, or links to files in your Apify key-value store.
  2. OCR: leave on Auto (OCR only pages without text). Off is cheapest; Always re-reads every page with OCR when a PDF's text layer is broken.
  3. Pick OCR languages if the scans aren't English (Spanish, French, German, Portuguese, Italian).
  4. Optional: Max pages per document (e.g. 20 to read only the start of long reports), Max file size.
  5. Click Start.

Output

A real record from a run on 2026-11-24 (the prefilled IRS Form W-9), with long text shortened:

{
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"fileName": "fw9.pdf",
"fileType": "pdf",
"status": "ok",
"pageCount": 6,
"pagesProcessed": 6,
"textLayerPages": 6,
"ocrPages": 0,
"wordCount": 6361,
"title": "Form W-9 (Rev. March 2024)",
"subject": "Request for Taxpayer Identification Number and Certification",
"created": "2024-03-06T13:18:13.000Z",
"markdown": "… <!-- page 3 -->\n\nCertain payees and payments are exempt from backup withholding. See Exempt payee code, later, and the separate Instructions for the Requester of Form W-9 for more information. …\n\n## What Is FATCA Reporting?\n\nThe Foreign Account Tax Compliance Act (FATCA) requires a participating foreign financial institution to report all …",
"pages": [
{ "page": 3, "method": "text", "chars": 6342, "confidence": null, "markdown": "Certain payees and payments are exempt from backup withholding. …" }
]
}

Page 3 of that form is printed in two columns; the Markdown reads the left column, then the right, and the running header "Form W-9 (Rev. 3-2024) Page 3" is removed.

Fields

FieldMeaning
status, errorok or error with the reason (not a PDF, too large, blocked by robots.txt, HTTP error). Errors are not charged.
pageCount, pagesProcessed, truncatedPages in the file, pages read, and whether Max pages cut it short
textLayerPages, ocrPages, emptyPagesHow each page was read
ocrMeanConfidenceTesseract's average confidence (0–100) over OCR pages
wordCount, charCountSize of the extracted text
title, author, subject, keywords, creator, producer, created, modified, pdfVersionPDF metadata, when present
markdown, textThe whole document
pagesPer page: page, method (text, ocr or empty), chars, confidence, markdown
markdownUrl, textUrlOnly for very large documents: the full text in the key-value store (the row keeps the first 200,000 characters)

The run summary (OUTPUT) lists each document's status, pages, OCR pages and time.

Pricing

Pay per result, no start fee:

EventPriceCharged for
Document$0.003each PDF or image turned into Markdown and text
Text page$0.0001each page read from the PDF's own text layer
OCR page$0.006each scanned page or image read with OCR

Failed downloads, robots.txt blocks, non-PDF files and blank pages are free.

Examples:

  • IRS Form W-9 (6 text pages): $0.003 + 6 × $0.0001 = $0.0036, about 4 seconds.
  • IRS Publication 15 (59 text pages): $0.003 + 59 × $0.0001 = $0.0089, about 6 seconds.
  • A 10-page scanned document: $0.003 + 10 × $0.006 = $0.063, about 10–15 seconds per page.

If you set a maximum cost per run, the Actor checks before each document that the document and its pages fit in what's left. It reads fewer pages, or stops, rather than charging for a document you don't receive.

Good to know

  • OCR speed: about 10–15 seconds per dense scanned page. Text-layer pages take milliseconds.
  • Tables come out as text lines in reading order, not as Markdown tables.
  • Forms and complex layouts (boxes, sidebars, mixed columns) are read as well as the layout allows; check the pages array for page-level results.
  • Password-protected PDFs aren't supported yet.
  • Polite downloading: files are fetched with a clear client name, robots.txt is respected (a disallowed file is skipped with a clear error), and files over the size limit are skipped.

Feedback

Want another format (Word, HTML) or Markdown tables? Open an issue on the Issues tab.