PDF Text Extractor - PDF to Text, Markdown & RAG Chunks
Pricing
from $2.00 / 1,000 pdf processeds
PDF Text Extractor - PDF to Text, Markdown & RAG Chunks
Extract clean text, Markdown, per-page text, metadata and ready-to-embed RAG chunks from any PDF URL. Fast, no browser, bulk friendly. $2 per 1,000 PDFs, failed files are free.
Pricing
from $2.00 / 1,000 pdf processeds
Rating
0.0
(0)
Developer
HONG SON NGUYEN
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Turn any PDF link into clean, structured data. Give it one URL or ten thousand, and get back the plain text, a Markdown version with real headings, the text of every page, the document metadata, and optional ready-to-embed chunks for your vector database.
No browser, no OCR delay, no setup. It is fast and cheap: $2 per 1,000 PDFs.
What does PDF Text Extractor do?
For every PDF URL you give it, the Actor downloads the file, reads its text layer and returns one row with:
- Plain text: the full text with paragraphs kept apart and broken words re-joined.
- Markdown: headings detected from font size (
#,##,###), bullet lists and paragraphs, so LLMs understand the structure. - Text per page: each page's text with its page number, for citations and "page 12 says..." answers.
- RAG chunks: the text split into overlapping chunks of the size you choose, each with its start and end page.
- Metadata: title, author, subject, keywords, creator, producer, creation and modification dates, PDF version, file size, page count and word count.
- Scanned PDF warning: if most pages have no text layer, the row is flagged
likelyScanned: true, so you know which files need OCR.
Who is it for?
- AI and RAG builders who need PDF content in a vector database (Pinecone, Qdrant, Weaviate, pgvector...) with page numbers kept.
- Researchers and analysts who need to read reports, papers, filings or tenders in bulk.
- Automation users (Make, Zapier, n8n) who want "PDF link in, text out" without running their own server.
- Developers who don't want to maintain a PDF parsing stack.
Why use it?
- Cheap and predictable: you pay per PDF that was read successfully. Failed downloads and non-PDF links are free.
- Fast: pure text extraction, no headless browser. A normal 20-page PDF takes well under a second to parse.
- Structure kept: paragraphs, headings and lists survive, unlike a raw text dump.
- Bulk friendly: paste a list or upload a file of URLs; several PDFs are processed in parallel.
How much does it cost?
This Actor uses pay-per-event pricing. You pay $0.002 per PDF processed (that is $2 per 1,000 PDFs), plus a tiny start fee per run. There are no extra platform usage costs.
| PDFs | Price |
|---|---|
| 100 | $0.20 |
| 1,000 | $2.00 |
| 10,000 | $20.00 |
PDFs that fail (broken link, not a PDF, too big, timeout) are not charged. You can set a maximum cost per run in the run options and the Actor stops cleanly when it is reached.
How to use it
- Click Try for free.
- Paste your PDF URLs into PDF URLs (or upload a .txt file with one URL per line).
- Choose what you want back: plain text, Markdown, text per page, RAG chunks.
- Click Start and download the results as JSON, CSV, Excel or via the API.
Input
| Field | What it does | Default |
|---|---|---|
pdfUrls | Direct links to PDF files | required |
includeFullText | Add the full plain text | true |
includeMarkdown | Add a Markdown version | true |
includePages | Add text for each page | false |
chunkSize | RAG chunk size in characters (0 = off) | 0 |
chunkOverlap | Characters repeated between chunks | 200 |
maxPagesPerPdf | Read only the first N pages | 500 |
maxFileSizeMb | Skip files larger than this | 50 |
requestTimeoutSecs | Download timeout | 60 |
maxConcurrency | PDFs processed at the same time | 4 |
Example input:
{"pdfUrls": [{ "url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf" }],"includeMarkdown": true,"includePages": true,"chunkSize": 1500,"chunkOverlap": 200}
Output
One row per PDF. Example (text shortened):
{"url": "https://example.com/report.pdf","status": "OK","error": null,"fileName": "report.pdf","fileSizeBytes": 248311,"pageCount": 2,"pagesExtracted": 2,"wordCount": 354,"charCount": 2270,"likelyScanned": false,"title": "Quarterly Report","author": "Jane Doe","createdAt": "2026-11-16T00:08:20Z","text": "Quarterly Report 2026\n\n1. Introduction\n\nThis is paragraph 0...","markdown": "# Quarterly Report 2026\n\n# 1. Introduction\n\nThis is paragraph 0...\n\n## Key results\n\n- Revenue grew 12%","pages": [{ "page": 1, "charCount": 1490, "text": "..." }],"chunks": [{ "index": 0, "pageStart": 1, "pageEnd": 1, "charCount": 1497, "text": "..." }]}
A failed PDF looks like this, and is not charged:
{ "url": "https://example.com/missing.pdf", "status": "ERROR", "error": "Download failed: HTTP 404" }
The run also saves a SUMMARY record in the key-value store with the number of PDFs processed and failed, total pages and total words.
Integrations and API
Run it from your own code with the Apify API or client:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('sonnguyenauctor/pdf-text-extractor').call({pdfUrls: [{ url: 'https://www.irs.gov/pub/irs-pdf/fw9.pdf' }],chunkSize: 1500,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items[0].markdown);
It also works with Make, Zapier, n8n, LangChain, LlamaIndex and as a tool for AI agents through the Apify MCP server.
Limitations
- Scanned PDFs (images of pages with no text layer) return little or no text. They are flagged with
likelyScanned: trueso you can send them to an OCR tool. - Tables come out as text lines, not as structured cells.
- Password-protected PDFs cannot be read and are reported as errors.
- The PDF link must be publicly downloadable. Links that need a login won't work.
FAQ
Do I pay for PDFs that fail? No. Only PDFs that were read successfully are charged.
How are headings detected? From font size: lines clearly larger than the body text become #, ## or ### headings.
What chunk size should I use for RAG? 1,000-2,000 characters with 150-300 characters overlap works well for most embedding models.
Is there a page limit? By default the first 500 pages of each PDF are read. You can raise it to 5,000.
Found a bug or need a feature? Open an issue on the Issues tab and include the run link.