Bulk PDF Text Extractor - URLs to Text, Pages & Metadata
Pricing
from $3.00 / 1,000 pdf extracteds
Bulk PDF Text Extractor - URLs to Text, Pages & Metadata
Download PDFs from a list of URLs and extract clean structured text (whole document or per page), page count, word count, and document metadata for RAG and LLM pipelines. Flags scanned PDFs. No OCR.
Pricing
from $3.00 / 1,000 pdf extracteds
Rating
0.0
(0)
Developer
Beryline Pastel
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 hours ago
Last modified
Categories
Features
Share
Turn a list of PDF links into clean, structured text. For every URL the actor downloads the PDF, extracts the text page by page, rebuilds readable line breaks, and returns one dataset row with the text, page count, word count and document metadata. Built for RAG / LLM pipelines, document search, compliance archives and research datasets.
Important: this actor reads the text layer of a PDF. It does not do OCR. Scanned PDFs (images of pages) are detected and flagged with likelyScanned: true so you know to run them through an OCR tool.
What you get
- Text per page or whole document:
outputFormat: "pages"returns[{ page, text, charCount }];"text"returns one string. - Readable layout: line breaks are reconstructed from the position of each text fragment, so paragraphs and table rows do not collapse into one long line. Complex multi-column layouts and tables are returned in reading order of the PDF's text, not as real tables.
- Metadata: title, author, subject, creator, producer, creation date, modification date, PDF version (ISO dates).
- Quality signals:
pageCount,pagesExtracted,truncated,totalChars,wordCount,likelyScanned. - Safe downloads: 60 s timeout, size limit enforced from
Content-Lengthand again while streaming, and a%PDFheader check, so HTML error pages and huge files never get parsed. - One row per URL, in the same shape whether it succeeded or failed.
Use cases
- Feed PDFs into a vector database or LLM prompt
- Index annual reports, contracts, papers, manuals, price lists
- Check which PDFs in a list are scanned (no text) before choosing an OCR service
- Archive document text and metadata in a searchable dataset
Input
| Field | Description |
|---|---|
pdfUrls | Direct links to PDF files (http/https). Duplicates are removed |
maxPagesPerPdf | Extract only the first N pages (default 200). Longer files get truncated: true |
maxFileSizeMb | Reject files larger than this (default 50) |
outputFormat | pages (default, array per page) or text (one string) |
includeMetadata | Include the metadata object (default true) |
concurrency | PDFs processed in parallel (default 3) |
{"pdfUrls": ["https://pdfobject.com/pdf/sample.pdf"],"maxPagesPerPdf": 200,"outputFormat": "pages","includeMetadata": true}
Output (one row per PDF)
{"url": "https://pdfobject.com/pdf/sample.pdf","status": "ok","error": null,"fileSizeBytes": 18810,"pageCount": 1,"pagesExtracted": 1,"truncated": false,"metadata": {"title": "sample","author": "Philip Hutchison","subject": null,"creator": "Pages","producer": "Mac OS X 10.5.4 Quartz PDFContext","creationDate": "2008-07-01T05:24:47.000Z","modDate": "2008-07-01T05:24:47.000Z","pdfVersion": "1.3"},"pages": [{ "page": 1, "text": "Sample PDF\n\nThis is a simple PDF file. Fun fun fun. ...", "charCount": 2883 }],"totalChars": 2883,"wordCount": 416,"likelyScanned": false}
Failed rows look like { "url": "...", "status": "error", "error": "HTTP 403", "errorCode": "http", "pageCount": null, "pagesExtracted": 0 }. Error codes: invalid-url, http, network, timeout, too-large, not-pdf, encrypted, corrupt.
A run summary (counts, pages, characters, seconds) is stored in the key-value store as SUMMARY.
Pricing
Pay per event: $0.003 per successfully extracted PDF; failed downloads and non-PDFs are free. One event is charged per PDF regardless of its page count (up to your page limit). 1,000 PDFs = $3. Set Max cost per run to cap spending; the actor stops cleanly when the limit is reached.
FAQ
Does it OCR scanned documents? No. If a PDF has fewer than 30 characters per page on average, the row is marked likelyScanned: true with a note. You are still charged for such a PDF because it was downloaded and parsed successfully; filter on likelyScanned if you want to skip them later.
Password-protected PDFs? They return an encrypted error and are not charged.
Do you support PDFs behind a login? No. Only publicly reachable URLs; no cookies or credentials are sent.
Why is the text order odd for tables or columns? PDFs store positioned text fragments, not tables. The actor groups fragments into lines by vertical position. Multi-column pages may interleave columns.
Memory? The default is 512 MB because the PDF engine needs more than 256 MB for larger files. For PDFs near the size limit with high concurrency, raise memory or lower concurrency.
Limits
No OCR; no images or table structure extraction; no form-field values; text only from the PDF text layer; files above maxFileSizeMb (default 50 MB) and pages above maxPagesPerPdf are skipped; 60 second download timeout per file.
Use with AI agents (MCP)
This Actor works as a tool for Claude, ChatGPT, Cursor and other MCP clients through the Apify MCP server:
https://mcp.apify.com?tools=beryline_pastel/bulk-pdf-text-extractor
Example prompt: "Extract the text of these PDF URLs page by page so I can index them for RAG."