PDF Text Extractor – PDF to Markdown, Text & Tables
Pricing
from $0.90 / 1,000 pdf pages
PDF Text Extractor – PDF to Markdown, Text & Tables
PDF text extractor: PDF to text & PDF to Markdown converter. Extract text from PDF URLs page by page, with Markdown tables, table cells, RAG chunks. $1.50/1k pages. Scanned PDF OCR: optional AI OCR (Claude), $8.00/1k.
Pricing
from $0.90 / 1,000 pdf pages
Rating
0.0
(0)
Developer
Glidepath
Maintained by CommunityActor stats
0
Bookmarked
4
Total users
0
Monthly active users
21 hours ago
Last modified
Categories
Features
Share
PDF Text & Table Extractor – Pages, Markdown, RAG
Turn PDF files into clean text, Markdown and tables, one row per page. Give it PDF links; for every page you get the text in reading order, a Markdown version with the page's tables as Markdown tables, the table cells as rows and columns, optional RAG chunks, and the document's metadata. You pay per page.
Scanned PDFs too (optional AI OCR): turn on Read scanned pages with OCR and pages without a text layer (scans, photos of documents) are read by an AI model into the same text, Markdown and tables, charged as OCR pages. With OCR off, such pages are skipped for free.
Plain HTTP and a fast PDF parser, no browser: a 50-page report takes seconds.
Who uses it
- AI and RAG builders: feed reports, manuals and papers into a vector database with page numbers kept, already split into chunks of the size you choose.
- Analysts and researchers: pull the tables out of statistical releases, annual reports and price lists, page by page, into JSON, CSV or Excel.
- Developers and automations: convert PDFs that arrive as links (invoices from a portal, public documents, filings) into text for a workflow in Make, Zapier or n8n.
- Monitoring: run it on a schedule for documents that are republished under the same URL.
- Back offices and archives: turn scanned contracts, letters, statements and old reports into searchable text and tables with the OCR option.
How to use it
- Put one or more PDF links in PDF URLs (up to 500).
- Optionally choose Pages (e.g.
1-5, 8), turn tables or Markdown on or off, set a RAG chunk size, and turn on Read scanned pages with OCR for scanned PDFs. - Run it and download the pages as JSON, CSV or Excel, or pass them to another Actor, an AI agent or your vector database.
Input example
{"urls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf","https://www.irs.gov/pub/irs-pdf/p15.pdf"],"pages": "1-10","maxPages": 1000,"maxPagesPerFile": 0,"extractTables": true,"includeMarkdown": true,"preserveLayout": false,"chunkSize": 1000,"chunkOverlap": 100}
For scanned PDFs add "ocr": true (and optionally "maxOcrPages": 100).
Output example
{"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf","fileName": "fw9.pdf","pageNumber": 1,"pageCount": 6,"text": "W-9\nRequest for Taxpayer\nForm Give form to the\n(Rev. March 2024) Identification Number and Certification ...","markdown": "W-9\nRequest for Taxpayer ...\n\n| Employer identification number | | | ... |\n|---|---|---|...","tables": [{"index": 0, "rowCount": 2, "columnCount": 10, "rows": [["Employer identification number", "", "..."], ["", "", "–", "..."]]}],"tableCount": 1,"charCount": 5650,"wordCount": 1010,"chunks": [{"index": 0, "text": "W-9\nRequest for Taxpayer ..."}],"title": "Form W-9 (Rev. March 2024)","subject": "Request for Taxpayer Identification Number and Certification","keywords": "Fillable","creator": "Designer 6.5","producer": "Designer 6.5","createdAt": "2024-03-06T13:18:13Z","modifiedAt": "2024-03-06T13:18:13Z","pdfVersion": "1.7","fileSizeBytes": 140815,"extractedAt": "2026-10-11T05:00:00Z"}
| Field | Type | Description |
|---|---|---|
url | string | The PDF URL you entered |
fileName | string | File name from the URL |
pageNumber | integer | Page number (1-based) |
pageCount | integer | Pages in the whole file |
text | string | Page text in reading order (e-mail addresses and phone numbers removed) |
markdown | string / null | Page text with tables as Markdown tables (null when Include Markdown is off) |
tables | array | Tables on the page: index, rowCount, columnCount, rows (rows of cell strings) |
tableCount | integer | Number of tables on the page |
charCount | integer | Characters in text |
wordCount | integer | Words in text |
ocr | boolean | Only when OCR is on: true for a page read with OCR (charged as an OCR page), false for a page read from its text layer |
chunks | array | RAG chunks of the page text: index, text (empty unless a chunk size is set) |
title | string / null | Document title from the PDF's metadata |
subject | string / null | Document subject from the PDF's metadata |
keywords | string / null | Document keywords from the PDF's metadata |
creator | string / null | Application that created the document |
producer | string / null | Software that produced the PDF |
createdAt | string / null | Creation date from the metadata, ISO 8601 UTC |
modifiedAt | string / null | Modification date from the metadata, ISO 8601 UTC |
pdfVersion | string / null | PDF version from the file header, e.g. 1.7 |
fileSizeBytes | integer | Size of the downloaded file |
extractedAt | string | ISO 8601 UTC |
The run's key-value store also has SUMMARY (per file: page count, pages saved, pages without a text layer; with OCR on also pagesOcr, ocrFailed, ocrSkipped and ocrStopped) and, when something could not be read, ERRORS with the reason: NOT_A_PDF, NOT_FOUND, NO_TEXT_LAYER, ENCRYPTED, DAMAGED, TOO_LARGE, TOO_MANY_PAGES, NO_PAGES_SELECTED, ROBOTS_DISALLOWED, BLOCKED, FETCH_FAILED, REFUSED, SKIPPED, ERROR (an unexpected error with this file, for example our parser failing on a file other PDF readers open).
Scanned PDFs (OCR)
With Read scanned pages with OCR on, every selected page that has no text layer is rendered as an image (about 200 dpi for a Letter or A4 page) and read by an AI model (Anthropic's Claude). The answer comes back as Markdown, so an OCR page has the same fields as any other page: text, markdown and tables (Markdown tables turned into cells). Pages that do have a text layer are still read directly from it, exactly and at the normal page price.
- What is charged: one OCR page for each scanned page that comes back with text, instead of (not on top of) the PDF page price. Blank pages (detected before any reading), pages where no text is found and pages that fail are free.
- Measured quality: on our test set of 30 simulated scans (IRS form and publication pages rendered at 200 to 300 dpi with skew, blur, scanner noise and JPEG compression; multi-column text, tables, small print), about 97% of the words of the original document came back, and a page-by-page check of 8 of the densest pages found no misread words or numbers. Real scans of poor originals, faxes and phone photos may read worse. Printed English text was tested; handwriting was not. Words the model cannot read appear as
[illegible]; a page with nothing else on it is not charged. - AI output, check what matters: OCR text is written by an AI model. It can misread a word or a number, so check amounts, dates and reference numbers against the original page before you rely on them.
- Images instead of PDFs? For JPEG, PNG, WebP or TIFF files, use Image to Text OCR: open-source OCR inside the Actor, one row per image, with every line's position and confidence.
- Speed: about 25 scanned pages a minute (measured: 30 pages in 79 seconds including the download; 4 pages are read at a time, rows are still saved in page order).
- Limits: Max pages to read with OCR per run (default 100, up to 10,000) counts every scanned page tried. OCR stops for a file after 3 scanned pages in a row that are blank, give no text or fail (text-layer pages in between do not interrupt the count); the file's later scanned pages are then skipped (
ocrSkippedinSUMMARY) and not charged. OCR stops for the run when more than 20 scanned pages, and more than the pages read, came back without text. A page with more text than one read covers is reported asOCR_INCOMPLETE, and a page whose images are larger than 100 megapixels asPAGE_TOO_LARGE; neither is charged. - Privacy: the page images are sent to Anthropic's API to be read. E-mail addresses and phone numbers are removed from the OCR text, as from every other page.
Use it with
- AI agents and MCP: the Apify MCP server exposes this Actor as a tool; the input is a list of PDF links.
- Vector databases and LangChain/LlamaIndex: use
chunks(ortextper page) withurlandpageNumberas the source reference. - Make, Zapier, n8n, Google Sheets, Slack: through the Integrations tab.
- API and code: the Apify API, the JavaScript and Python clients, or CSV/JSON/Excel downloads.
Pricing
Pay per page: $1.50 per 1,000 pages on the Apify Free plan; on paid plans $1.35 (Starter), $1.10 (Scale) and $0.90 (Business and higher) (the price for your plan is shown on the Pricing tab). The examples below use the Free-plan price. Tables, Markdown and RAG chunks are included. Only pages saved with text are charged; pages without a text layer (with OCR off), pages outside your page range and files that fail are free.
- 100 reports of 20 pages (2,000 pages) → about $3.00.
- 1,000 pages of manuals for a RAG knowledge base → about $1.50.
- 10,000 pages of filings a month → about $15.00/month.
Scanned pages (OCR, optional): $8.00 per 1,000 OCR pages on the Apify Free plan; $7.00 (Starter), $6.25 (Scale) and $5.50 (Business and higher). A page read with OCR is charged only as an OCR page. Examples at the Free-plan price:
- 1,000 scanned pages → about $8.00.
- A mixed batch of 2,000 text pages and 1,000 scanned pages → about $3.00 + $8.00.
A small start fee of $0.00005 per run applies. Set a maximum cost per run in the run options and the Actor stops cleanly when it is reached; Max pages per run does the same by count.
Limits and notes
- Scanned pages need the OCR option. With OCR off (the default), pages without a text layer are listed in
SUMMARYand not charged. On pages that have a text layer, text inside pictures (a chart, a pasted screenshot) is not read, also with OCR on. A page counts as having a text layer when it has at least 3 characters of text, so a scanned page that only carries a digital stamp (a page or Bates number, a fax header, a watermark) is read from that text layer as a PDF page, not with OCR. - Tables are detected from their ruling lines (cell borders). Tables drawn without lines still appear in
textandmarkdownas plain lines, but not intables. - Rotated text (e.g. a vertical label in a page margin) is left out; it would otherwise come out letter-reversed.
- Up to 500 files per run, 50 MB and 2,000 pages per file, 100,000 pages per run. Password-protected files are reported as
ENCRYPTED. - PDF links only. A link that returns a web page or another file type is reported as
NOT_A_PDFand not charged; to read web pages use a web scraper instead. - robots.txt is respected (RFC 9309) for every file; if robots.txt can't be read (server error), the file is skipped to be safe. No logins, no proxies, no bot-check bypass; private or internal addresses are refused.
- E-mail addresses and phone numbers are replaced with
[email removed]/[phone removed]; the document's author field is not output.
FAQ
Is it legal to extract text from PDFs? This Actor downloads only files that are publicly reachable at the links you give, where the site's robots.txt allows it, without logging in or getting around any protection, and it removes e-mail addresses and phone numbers. You are responsible for having the right to use the documents you process (copyright and each site's terms still apply); if in doubt, ask a lawyer.
How is this different from a web page to Markdown tool? Those tools return a whole PDF as one block of text. This Actor keeps pages separate (with page numbers for citations), extracts tables as cells and as Markdown tables, lets you pick page ranges, splits text into RAG chunks and does not charge for pages without text.
Why is a page missing? It had no text layer (see pagesWithoutText in SUMMARY), was outside your Pages range, a limit was reached, or, with OCR on, it could not be read (see ocrFailed in SUMMARY for the page and the reason).
Can it read scanned PDFs? Yes: turn on Read scanned pages with OCR. Scanned pages are then read by an AI model and charged as OCR pages (see Pricing); pages with a text layer in the same file are read directly at the normal page price. With OCR off, scanned pages are skipped for free and listed in SUMMARY.
Can I upload a file instead of a link? Put the file somewhere it has a public link (e.g. a key-value store record or cloud storage) and pass that link.
Why did my run succeed with 0 results? Nothing could be extracted because of the input itself: every link was dead (NOT_FOUND), not a PDF (NOT_A_PDF), a private address (REFUSED) or disallowed by the site's robots.txt (ROBOTS_DISALLOWED), or the file was password-protected (ENCRYPTED), damaged (DAMAGED), over the size limits (TOO_LARGE, TOO_MANY_PAGES), had only scanned or blank pages with OCR off or no text found by OCR (NO_TEXT_LAYER) or no page in your Pages range (NO_PAGES_SELECTED), or your maximum cost per run was reached first (SKIPPED). Such a run ends SUCCEEDED with 0 rows and no page charged: the status message names the cause and ERRORS in the key-value store lists every file with its reason. A run fails when the problem is on our side or the site's: a network or server error, a timeout, a block, bot check or rate limit (BLOCKED, FETCH_FAILED), a robots.txt that could not be read, an unexpected error (ERROR), OCR not working or failing on a page (ocrFailed in SUMMARY; only PAGE_TOO_LARGE is the page's own limit), or OCR stopping before every scanned page was read for a reason other than your Max pages to read with OCR per run (OCR's own cost limits: 3 pages in a row without text, too many pages without text, the cost cap); the status message then starts with what made it fail. Runs that save at least one page succeed as before, with the files that failed in ERRORS.
Changelog
See CHANGELOG.md.
Support
Found a problem or need a feature? Open an issue on the Actor's Issues tab. We read every one.