PDF Text Extractor
Pricing
from $1.19 / 1,000 results
PDF Text Extractor
PDF Text Extractor SD - PDF Text Extractor is a document data tool that extracts text, Markdown, tables, metadata and OCR text from PDF files by URL or Base64: page by page, with page ranges, passwords and RAG-ready chunks for LLMs.
Pricing
from $1.19 / 1,000 results
Rating
0.0
(0)
Developer
Neuro Scraper
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
Share
PDF Text Extractor
The PDF Text Extractor collects public PDF text data and returns it as a clean dataset you can download as JSON, CSV or Excel, or read through the Apify API. No login, no cookies and no code: give the PDF Text Extractor your input, start it and get structured PDF data for research, monitoring, analytics or lead generation. You pay only for the results you receive.
⭐ Featured by Neuro Scraper: Facebook Reels Scraper - scrape Facebook Reels from any page, profile or reel link with exact views and plays, every reaction type (Like, Love, Care, Haha, Wow, Sad, Angry), comments, shares, captions, music and video links. No login and no cookies. Try the Facebook Reels Scraper →
PDF Text Extractor turns PDF files into clean, structured data. Give PDF Text Extractor links to PDFs (or Base64 files through the API) and it returns the full text, a Markdown version for LLMs, page-by-page text, tables, document metadata and OCR text for scanned pages - one row per PDF.
Also try: the Facebook Reels Scraper - export public Facebook Reels with views, likes, comments, captions and video links. It pairs well with PDF Text Extractor for social media research.
What does PDF Text Extractor do?
PDF Text Extractor downloads each PDF, extracts its text layer page by page and falls back to OCR for pages that are only images. PDF Text Extractor gives you:
- Full document text and a Markdown version with page headings and tables, ready for RAG and AI pipelines.
- Per-page text with word counts and an OCR flag per page.
- Table extraction: every detected table as rows of cells, also written into the Markdown.
- OCR for scanned or image-only pages in 8 languages, with an OCR confidence score and a low-confidence flag.
- Document metadata: title, author, subject, keywords, creator, producer, creation and modification dates, PDF version, file size, page count.
- Page ranges (1-3,7,10-), a page cap, password-protected PDFs, page-number removal and skipping of empty pages.
- RAG chunks with your chunk size and overlap, and clear status, error codes, warnings and recommended actions for every file.
PDF Text Extractor runs on the Apify platform, so every run of PDF Text Extractor gives you a dataset you can export as JSON, CSV, Excel, XML or HTML, read through the Apify API, or send to Google Sheets, Make, Zapier, n8n or a webhook. You can schedule PDF Text Extractor to run every hour, day or week and keep your data fresh without touching a line of code.
Why use PDF Text Extractor?
People use PDF Text Extractor for many jobs. The most common ones are:
- Feeding reports, papers, contracts and manuals into an LLM, a vector database or a RAG chatbot.
- Extracting invoice, statement and form data from scanned PDFs.
- Bulk text extraction from public filings, research papers and government documents.
- Search indexing of document libraries.
- Table extraction from financial reports into spreadsheets.
- Monitoring documents on a schedule and comparing their text over time.
PDF Text Extractor needs no account, no login and no browser extension. You only give PDF Text Extractor the PDF links, press Start, and download the results. Because PDF Text Extractor saves clean, typed fields (numbers as numbers, dates in ISO format), the output of PDF Text Extractor drops straight into a spreadsheet, a database, a vector store or a Python / Node.js script.
How to use PDF Text Extractor
- Open PDF Text Extractor in Apify Console and click Try for free (or Start if you already use PDF Text Extractor).
- Fill in the input. Give at least one PDF: links in
urls, or Base64 files inbase64Pdfswhen you call PDF Text Extractor from the API. Everything else is optional - output parts (includeFullText,includeMarkdown,includePages,extractTables,chunkForRag), OCR settings, a page range, a password and limits. The prefilled example works with one click. - Press Start and watch the log. PDF Text Extractor logs one line per finished file with the processed and total pages, words, OCR pages and tables ("1706.03762: 15/15 pages, 6012 words, 0 OCR pages, 0 tables"). A failed file gets an ERROR line with the link and the reason (for example "HTTP 404" or "the PDF is password-protected"), and OCR problems appear as WARNING lines. The last line counts the saved rows.
- Download the results. Open the Output tab and export the dataset as JSON, CSV, Excel, XML or HTML, or read it through the Apify API (see "API usage" below).
- Schedule and connect. Save the input as a task, add a schedule to re-read documents that change, and connect integrations: Google Sheets, Zapier, Make, n8n, a vector database loader or a webhook that fires when PDF Text Extractor finishes.
Input of PDF Text Extractor
This table is the short overview of the input of PDF Text Extractor; every option is explained in detail in the next section.
| Input | Name | Default |
|---|---|---|
| PDF URLs | urls | ["https://arxiv.org/pdf/1706.03762"] |
| Base64 PDFs (for API calls) | base64Pdfs | - |
| Page range | pageRange | all pages |
| Max pages per PDF | maxPages | 500 |
| Full text | includeFullText | true |
| Markdown (LLM / RAG ready) | includeMarkdown | true |
| Per-page text | includePages | false |
| Extract tables | extractTables | false |
| OCR scanned pages | ocrScannedPages | true |
| OCR language | ocrLanguage | eng |
| Max OCR pages per PDF | ocrMaxPagesPerPdf | 50 |
| PDF password | password | - |
| Remove page number lines | removePageNumbers | false |
| Skip empty pages | skipEmptyPages | false |
| Split into RAG chunks | chunkForRag | false |
| Chunk size (characters) | chunkSize | 1500 |
| Chunk overlap (characters) | chunkOverlap | 150 |
| Max file size (MB) | maxFileSizeMb | 50 |
| Timeout per PDF (seconds) | timeoutPerPdfSecs | 120 |
| PDFs in parallel | maxConcurrency | 3 |
| Max PDFs | maxItems | 100 |
| Proxy configuration | proxyConfiguration | no proxy |
Features and how they work in the scraper
PDF URLs (urls)
- What it does: the links of the PDF files PDF Text Extractor downloads and converts, one per line.
- How it works: each link is downloaded (redirects are followed), checked to really be a PDF (a file that is not a PDF gets
errorCodeNOT_PDF), and then processed. Links to local or private network addresses are refused for safety. Every link gives exactly one row, also when it fails. - Allowed values and default: a list of http / https links. Prefill:
["https://arxiv.org/pdf/1706.03762"]. - Example:
"urls": ["https://arxiv.org/pdf/1706.03762", "https://www.irs.gov/pub/irs-pdf/fw9.pdf"]. - Tip: the link must download the file directly; a link to a viewer page or a page that needs a login fails with REQUEST_FAILED or NOT_PDF.
- Combinations: can be used together with
base64Pdfsin one run;maxItemscaps the total number of files from both.
Base64 PDFs (for API calls) (base64Pdfs)
- What it does: sends PDF files directly inside the input, for files that are not hosted anywhere (uploads, e-mail attachments, files from your own system).
- How it works: each entry is either a plain Base64 string or an object
{"fileName": "a.pdf", "data": "<base64>"}; PDF Text Extractor decodes it and processes it exactly like a downloaded file. The row getssourceType= base64 and the file name you gave. - Allowed values and default: a list of Base64 strings or objects; empty by default.
- Example:
"base64Pdfs": [{"fileName": "invoice-0042.pdf", "data": "JVBERi0xLjQK..."}]. - Tip: the Apify input is limited in size, so send big files as links instead; Base64 is best for files of a few MB.
- Combinations: works with every other option (page range, OCR, chunks); counts toward
maxItemslike a link.
Upload a PDF (documentFile)
What it does: lets you upload one PDF from your computer instead of giving a link. How it works: the Console stores the uploaded file and passes its link to the run; the file is then read exactly like an entry of urls. Allowed values: one uploaded PDF file. Default: empty. Example: upload invoice.pdf in the Input tab and start the run. Tip: for many files use urls or base64Pdfs; all three can be combined in one run.
Rows with PDF links (from another dataset) (data)
What it does: takes the rows of another dataset or system and reads the PDF that each row points to. How it works: for each row the link is taken from a column named url, pdfUrl, fileUrl, link, documentUrl, pdf or file - or, if none exists, the first public http(s) value of the row. Allowed values: a JSON list of objects (plain link strings work too). Default: empty. Example: {"data": [{"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf", "customer": "ACME", "id": 17}]} Tip: combine with keepOriginalFields so each result row carries your own ids next to the extracted text.
Keep original fields of data rows (keepOriginalFields)
What it does: carries your own columns through the run. How it works: when a PDF came from a data row, the whole row (all its fields) is copied into originalFields of the result. Allowed values: true / false. Default: true. Example: with the data example above, the result row has originalFields = {"url": "...", "customer": "ACME", "id": 17}. Tip: no effect for PDFs given in urls, base64Pdfs or documentFile.
Page range (pageRange)
- What it does: chooses which pages of each PDF are processed.
- How it works: a comma-separated list of single pages and ranges, 1-based:
1-3= pages 1 to 3,7= page 7,10-= page 10 to the end,-5= pages 1 to 5. Pages beyond the end of the file are ignored.pageCountstill reports the total pages of the file,pagesExtractedthe pages that were processed. - Allowed values and default: a text value; empty (default) = all pages.
- Example:
"pageRange": "1-3,7,10-". - Tip: for long annual reports, process only the summary pages first to save time and keep rows small.
- Combinations:
maxPagesis applied after the range, so"pageRange": "10-"with"maxPages": 5gives pages 10-14.
Max pages per PDF (maxPages)
- What it does: the maximum number of pages PDF Text Extractor processes from each PDF.
- How it works: after the page range is applied, the list of pages is cut to this length; the rest of the document is skipped. The cap is per file, not per run.
- Allowed values and default: integer 1-10,000; default 500.
- Example:
"maxPages": 20. - Tip: a low value is a cheap way to preview a large library of documents before a full run.
- Combinations: works per PDF together with
pageRange; OCR pages are additionally capped byocrMaxPagesPerPdf.
Full text (includeFullText)
- What it does: saves the whole document text in the
textfield (and the same value infullText). - How it works: the text of all processed pages is joined with blank lines between pages, after page-number removal and empty-page skipping when those options are on.
- Allowed values and default: true or false; default true.
- Example:
"includeFullText": false. - Tip: turn it off when you only need the Markdown or the chunks, so the rows stay small and export faster.
- Combinations: independent of
includeMarkdownandincludePages- you can keep all three, but each makes the row bigger.
Markdown (LLM / RAG ready) (includeMarkdown)
- What it does: saves the document as Markdown in the
markdownfield, ready for LLM prompts and RAG pipelines. - How it works: PDF Text Extractor writes a
## Page Nheading per page, keeps paragraphs, and writes every detected table as a Markdown table under its page whenextractTablesis on. - Allowed values and default: true or false; default true.
- Example:
"includeMarkdown": true. - Tip: Markdown keeps page boundaries, so an LLM can cite page numbers in its answers.
- Combinations: tables appear inside the Markdown only together with
extractTables.
Per-page text (includePages)
- What it does: saves a
pageslist with one entry per page: page number, text, word count and whether the page was read by OCR. - How it works: the same text as the full text, but split by page, so you can store or search pages separately.
- Allowed values and default: true or false; default false.
- Example:
"includePages": true. - Tip: use it for citations, page-level search, or to find which pages were scanned (OCR flag).
- Combinations:
skipEmptyPagesremoves empty entries from this list;removePageNumberscleans each page text.
Output format preset (outputFormat)
What it does: sets the shape of the output in one choice. How it works: a preset turns the four include toggles on or off: markdown = only markdown; per_page = only pages; combined = only text; both = text + pages; rag_chunks = only chunks (with chunkSize / chunkOverlap). Metadata, tables and the other columns are not affected. Allowed values: markdown, per_page, combined, both, rag_chunks. Default: not set (the toggles decide). Example: {"urls": ["https://arxiv.org/pdf/1706.03762"], "outputFormat": "rag_chunks", "chunkSize": 1000} Tip: use a preset for quick runs; use the toggles when you need an unusual mix.
Extract tables (extractTables)
- What it does: detects tables in the text layer and saves them in
tablesas rows of cells, withtableCount. - How it works: each table is saved with its page number and a list of rows, each row a list of cell texts; the same tables are written as Markdown tables into
markdown. - Allowed values and default: true or false; default false.
- Example:
"extractTables": truefound the form table on page 1 of the W-9 form in our test. - Tip: works best on PDFs made by software (reports, invoices); tables inside scanned images are not detected as tables, only as OCR text.
- Combinations: costs extra processing time per page, so combine it with
pageRangeon long documents.
OCR scanned pages (ocrScannedPages)
- What it does: turns pages that have no text layer (scans, photos, image-only pages) into text with OCR.
- How it works: a page with no extractable text is rendered as an image and read with OCR in the chosen language. The row then has
ocrPages/ocrPageCount, a meanconfidencescore andocrStatus= done; when no page needed OCR,ocrStatus= not_needed. - Allowed values and default: true or false; default true.
- Example:
"ocrScannedPages": true. - Tip: keep it on for unknown documents; when it is off and a file has no text, the row gets a warning telling you to turn it on.
- Combinations: the language is set with
ocrLanguage, and the number of OCR pages per file withocrMaxPagesPerPdf.
OCR language (ocrLanguage)
- What it does: the language of the scanned text, so OCR recognises the right letters and words.
- How it works: the OCR engine loads the dictionary of this language; a wrong language lowers the confidence and produces broken words.
- Allowed values and default: eng (English), deu (German), fra (French), spa (Spanish), ita (Italian), por (Portuguese), nld (Dutch), pol (Polish); default eng.
- Example:
"ocrLanguage": "deu". - Tip: if
lowConfidenceis true on many files, check that the language matches the scans. - Combinations: only used when
ocrScannedPagesis on; one language per run, so split mixed-language libraries into separate runs.
Max OCR pages per PDF (ocrMaxPagesPerPdf)
- What it does: the maximum number of scanned pages OCR reads in each PDF.
- How it works: OCR takes about a second or more per page; after this many OCR pages, the remaining scanned pages of the file are left empty and the row says how many pages were OCR-read.
- Allowed values and default: integer 0-2,000; default 50. 0 means no OCR pages at all.
- Example:
"ocrMaxPagesPerPdf": 200. - Tip: raise it for long scanned books; keep it low for a fast first pass over a big library.
- Combinations: applies inside the pages chosen by
pageRangeandmaxPages.
OCR resolution (DPI) (ocrDpi)
What it does: sets how sharp a scanned page is before it is read. How it works: pages without a text layer are rendered at this resolution and then read by OCR. Allowed values: 72-600. Default: 200. Example: {"urls": ["https://example.com/scan.pdf"], "ocrDpi": 300} Tip: use 300 for small print or poor scans; 150 for fast runs on clean scans.
OCR minimum word confidence (minWordConfidence)
What it does: removes OCR noise. How it works: OCR gives every word a confidence from 0 to 100; with a value above 0 the page text is rebuilt from the words at or above it (lines and paragraphs kept). Allowed values: 0-100. Default: 0 (keep all words). Example: {"urls": ["https://example.com/scan.pdf"], "minWordConfidence": 60} Tip: try 50-70 for noisy scans (stamps, handwriting, speckles); the average is always in confidence.
PDF password (password)
- What it does: opens password-protected PDFs.
- How it works: the password is tried on every protected file of the run; a protected file without the right password gets
errorCodePASSWORD_REQUIRED and the recommended action "Give the PDF password in the input". The field is stored as a secret in Apify. - Allowed values and default: a text value; empty by default.
- Example:
"password": "Report2026". - Tip: use one run per password when your files have different passwords.
- Combinations: unprotected files in the same run are not affected by the password.
Remove page number lines (removePageNumbers)
- What it does: drops lines that hold only a page number, such as
12,Page 3or4 / 20. - How it works: every line of the extracted text is checked; a line that is only a page number pattern is removed before the text, Markdown, pages and chunks are written.
- Allowed values and default: true or false; default false.
- Example:
"removePageNumbers": true. - Tip: turn it on for RAG and summaries - stray page numbers add noise to embeddings and LLM answers.
- Combinations: affects
text,markdown,pagesandchunksat the same time.
Remove repeated headers and footers (removeHeaderFooter)
What it does: cleans running headers and footers out of the text. How it works: the first and last two lines of every page are compared (numbers count as wildcards); a line that appears there on at least half of the pages (3 or more pages) is removed from every page. The log says how many patterns were removed. Allowed values: true / false. Default: false. Example: {"urls": ["https://arxiv.org/pdf/1412.6980"], "removeHeaderFooter": true} - on this 15-page paper 2 repeated patterns (134 words) were removed in our test. Tip: needs at least 3 pages; combine with removePageNumbers for page-number-only lines.
Remove excess blank lines (removeExcessBlankLines)
What it does: makes the text compact. How it works: three or more line breaks in a row become one empty line; spaces at line ends are removed. Paragraphs (one empty line) stay. Allowed values: true / false. Default: false. Example: {"urls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf"], "removeExcessBlankLines": true} Tip: useful before sending text to an LLM - fewer tokens, same content.
Skip empty pages (skipEmptyPages)
- What it does: leaves out pages that have no text at all.
- How it works: after text extraction and OCR, a page with no words is not added to the Markdown or the
pageslist, so blank separator pages disappear. - Allowed values and default: true or false; default false.
- Example:
"skipEmptyPages": true. - Tip: useful for scanned books with blank back sides; keep it off when page positions matter for citations.
- Combinations:
pageCountstill reports all pages of the file.
Split into RAG chunks (chunkForRag)
- What it does: also saves the text split into overlapping chunks in
chunks, ready for embeddings and retrieval. - How it works: the full text is cut into pieces of about
chunkSizecharacters, always at a space so no word is split; neighbouring chunks sharechunkOverlapcharacters. Each chunk has its index, start and end position and text;chunkCountcounts them. - Allowed values and default: true or false; default false.
- Example:
"chunkForRag": truegave 9 chunks for a 3-page paper in our test. - Tip: load
chunksstraight into a vector database; the start / end positions point back intotext. - Combinations: size and overlap come from
chunkSizeandchunkOverlap; chunks are still one row per PDF (inside the row).
Chunk size (characters) (chunkSize)
- What it does: the target length of one RAG chunk in characters.
- How it works: PDF Text Extractor fills a chunk up to this length and then cuts at the last space before the limit, so chunks are close to, not exactly, this size and no word is split.
- Allowed values and default: integer 200-20,000; default 1,500.
- Example:
"chunkSize": 1000. - Tip: 800-1,500 characters suits most embedding models; larger chunks keep more context but match less precisely.
- Combinations: only used with
chunkForRag; an overlap equal to or larger than the size is lowered automatically to size minus 1.
Chunk overlap (characters) (chunkOverlap)
- What it does: how many characters neighbouring chunks share.
- How it works: each new chunk starts this many characters before the end of the previous one, so a sentence cut at a chunk border still appears whole in one of the two chunks.
- Allowed values and default: integer 0-5,000; default 150.
- Example:
"chunkOverlap": 200. - Tip: 10-15 % of the chunk size is a good rule; 0 gives no overlap.
- Combinations: only used with
chunkForRag; keep it smaller thanchunkSize.
Add a summary (autoSummarize)
What it does: adds a short summary of each PDF in summary. How it works: every sentence of the extracted text is scored by how many of the document's key words it contains; the best sentences are returned in their original order. Nothing is invented - every sentence is quoted from the PDF. Form fields, tables and reference lists are skipped. Allowed values: true / false. Default: false. Example: {"urls": ["https://arxiv.org/pdf/1412.6980"], "autoSummarize": true, "summarySentences": 3} Tip: works best on prose (papers, reports, contracts); forms with almost no sentences give a short or empty summary.
Summary length (sentences) (summarySentences)
What it does: sets the length of summary. How it works: the top N sentences are kept. Allowed values: 1-30. Default: 5. Example: "summarySentences": 3 Tip: no effect while autoSummarize is off.
Read statement transactions (ledger) (statementLedger)
What it does: turns a bank or card statement into a list of transactions. How it works: a line that starts with a date (31/01/2024, 2024-01-31, 31.01.24, 31 Jan 2024, Jan 31) and ends with one to three amounts is a transaction; with two or more amounts the last is the running balance. Debit or credit comes from the sign, CR / DR, brackets, or from the change of the balance against the previous line (an "Opening balance" line starts it). US (1,234.56) and European (1.234,56) numbers are read. Allowed values: true / false. Default: false. Example: {"urls": ["https://example.com/statement-2024-01.pdf"], "statementLedger": true} gives entries such as {"date": "02/02/2024", "description": "Salary ACME", "amount": 2000.0, "credit": 2000.0, "balance": 2995.5}. Tip: scanned statements work with OCR on; check ledgerCount against the statement - lines without a date at the start (e.g. continued descriptions) are not counted.
Change detection (changeDetection)
What it does: tells you which PDFs changed since your last run. How it works: a fingerprint (SHA-256) of the extracted text is stored per link under changeStoreName; the next run compares and sets changed. Allowed values: true / false. Default: false. Example: {"urls": ["https://www.irs.gov/pub/irs-pdf/fw9.pdf"], "changeDetection": true} - schedule it daily; changed becomes true the day the form is updated. Tip: the first run marks every document as changed (nothing to compare with yet).
Only changed documents (changedOnly)
What it does: delivers only new or changed documents. How it works: turns on change detection; a document whose fingerprint equals the stored one gives no row (and costs nothing). Allowed values: true / false. Default: false. Example: {"urls": [...], "changedOnly": true} on a schedule = a document-change monitor. Tip: use one changeStoreName per monitored list.
Change memory name (changeStoreName)
What it does: names the memory of changeDetection. How it works: each name keeps its own fingerprints. Allowed values: letters, digits, dashes. Default: pdf-text-changes. Example: "changeStoreName": "tax-forms" Tip: a new name starts a fresh memory.
Max file size (MB) (maxFileSizeMb)
- What it does: files larger than this are not processed.
- How it works: the size is checked as soon as the file is downloaded; a larger file is not processed and is saved as a failed row with
errorCodeFILE_TOO_LARGE, so you see which file was skipped. - Allowed values and default: integer 1-500 MB; default 50.
- Example:
"maxFileSizeMb": 200. - Tip: raise it for scanned books and high-resolution catalogues; big files also need a longer
timeoutPerPdfSecs. - Combinations: works per file; memory use grows with file size, so combine large files with a lower
maxConcurrency.
Timeout per PDF (seconds) (timeoutPerPdfSecs)
- What it does: the download time limit for one file.
- How it works: if the file is not downloaded within this time, the download stops and the row fails with REQUEST_FAILED; the other files continue.
- Allowed values and default: integer 10-1,800 seconds; default 120.
- Example:
"timeoutPerPdfSecs": 300. - Tip: slow government servers and big files need more time; a failed row tells you to try again or raise this value.
- Combinations: independent of OCR time, which is controlled by
ocrMaxPagesPerPdf.
PDFs in parallel (maxConcurrency)
- What it does: how many PDFs are downloaded and processed at the same time.
- How it works: PDF Text Extractor keeps this many files in progress; when one finishes, the next starts.
- Allowed values and default: integer 1-20; default 3.
- Example:
"maxConcurrency": 5. - Tip: more parallel files finish a big list faster but use more memory; OCR-heavy runs work best with 2-3.
- Combinations: with large files (
maxFileSizeMbhigh) keep it low or give the run more memory.
Max PDFs (maxItems)
- What it does: how many PDFs (rows) PDF Text Extractor saves in total.
- How it works: every file gives one row, successful or failed; after this many rows the run ends and the remaining files are skipped.
- Allowed values and default: integer 1-100,000; default 100.
- Example:
"maxItems": 500. - Tip: set it to the number of files you give, or lower to test the first few files of a long list.
- Combinations: counts files from
urlsandbase64Pdfstogether.
Keep rows (keep)
What it does: filters the result rows by outcome. How it works: after a file is processed its status decides: with_text = text found (text layer or OCR); no_text = opened but no text; problems = download or parse failed. Allowed values: all, with_text, no_text, problems. Default: all. Example: {"urls": [...200 links...], "keep": "problems"} lists only the broken links. Tip: no_text finds image-only PDFs that need OCR.
Also save to dataset (name) (outputDatasetName)
What it does: collects the rows of many runs in one place. How it works: every row also goes to the named dataset of your account (created on the first run); the run's own dataset gets the rows as usual. Allowed values: letters, digits, dashes. Default: empty. Example: "outputDatasetName": "all-invoices" Tip: with changedOnly it builds a growing archive of document versions.
Proxy configuration (proxyConfiguration)
- What it does: chooses a proxy for the downloads.
- How it works: by default PDF Text Extractor downloads files directly, which works for almost every public PDF link. When a website blocks data-center downloads, turn on the Apify proxy (residential works best) and the downloads go through it.
- Allowed values and default: an Apify proxy object; default
{"useApifyProxy": false}. - Example:
"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}. - Tip: only switch it on when rows fail with REQUEST_FAILED and an HTTP 403 - the proxy adds cost per downloaded MB.
- Combinations: has no effect on Base64 files, which are never downloaded.
Ready-to-copy input examples for the scraper
1. Text and Markdown from PDF links - returns one row per PDF with full text, Markdown and metadata:
{"urls": ["https://arxiv.org/pdf/1706.03762", "https://www.irs.gov/pub/irs-pdf/fw9.pdf"],"includeFullText": true,"includeMarkdown": true}
2. RAG-ready chunks of the first pages - returns cleaned text split into 1,000-character chunks with 150 overlap, pages 1-10 only:
{"urls": ["https://arxiv.org/pdf/1706.03762"],"pageRange": "1-10","removePageNumbers": true,"skipEmptyPages": true,"chunkForRag": true,"chunkSize": 1000,"chunkOverlap": 150}
3. Scanned German documents with tables and per-page text - returns OCR text with confidence, the tables and one entry per page:
{"urls": ["https://example.com/scans/rechnung-2026.pdf"],"ocrScannedPages": true,"ocrLanguage": "deu","ocrMaxPagesPerPdf": 200,"extractTables": true,"includePages": true}
4. A Base64 file with a password (API call) - returns the text of a protected file you do not host anywhere:
{"base64Pdfs": [{"fileName": "statement.pdf", "data": "JVBERi0xLjQK..."}],"password": "Report2026","maxItems": 1}
Output fields of the scraper
PDF Text Extractor saves one row per PDF. Each row of PDF Text Extractor has the same fields in the same order. Several fields carry the same value under a second name, so a buyer switching from another PDF tool finds the column name they know.
| Field | Type | Meaning | When it can be empty |
|---|---|---|---|
url | string | The PDF link. | empty for Base64 files |
fileName | string | File name (from the link or the Base64 object). | never |
status | string | succeeded or failed. | never |
error | string | Why a file failed. | empty when the file succeeded |
fileSizeBytes | integer | File size in bytes. | empty when the download failed |
title | string | Document title from the metadata. | empty when the file has no title |
author | string | Author from the metadata. | empty when the file has no author |
subject | string | Subject from the metadata. | empty when not set in the file |
keywords | string | Keywords from the metadata. | empty when not set in the file |
creator | string | Program that created the document (e.g. "LaTeX with hyperref"). | empty when not set in the file |
producer | string | Program that wrote the PDF (e.g. "pdfTeX-1.40.25"). | empty when not set in the file |
creationDate | string | Creation date, ISO 8601. | empty when not set in the file |
modificationDate | string | Last modification date, ISO 8601. | empty when not set in the file |
pageCount | integer | Total pages in the PDF. | empty when the file failed |
pagesExtracted | integer | Pages that were processed (after range and caps). | empty when the file failed |
ocrPages | integer | Pages read by OCR. | empty when the file failed |
wordCount | integer | Words in the processed text. | empty when the file failed |
charCount | integer | Characters in the processed text. | empty when the file failed |
text | string | Full text. | empty with includeFullText off or on failure |
markdown | string | Markdown version with page headings and tables. | empty with includeMarkdown off or on failure |
pages | array | Per-page entries: pageNumber, text, word count, OCR flag. | empty with includePages off |
tables | array | Tables as page + rows of cells. | empty with extractTables off or when no table was found |
tableCount | integer | Number of detected tables. | 0 when no table was found |
chunks | array | RAG chunks: index, start, end, text. | empty with chunkForRag off |
chunkCount | integer | Number of chunks. | empty with chunkForRag off |
scrapedAt | string | When the file was processed (UTC). | never |
pdfIndex | integer | Position of the file in your input, counted from 0 (links first, then Base64 files). | never |
url_index | integer | Same as pdfIndex (second name). | never |
source | string | The link, or "base64: | never |
sourceUrl | string | Same as url (second name). | empty for Base64 files |
sourceType | string | url or base64. | never |
fileType | string | Always pdf. | never |
format | string | Always pdf (second name). | never |
pdfVersion | string | PDF version from the file header (e.g. 1.5). | empty when the file failed |
metadata | object | All metadata in one object (title, author, subject, keywords, creator, producer, dates, raw). | empty when the file failed |
documentCreatedAt | string | Same as creationDate (second name). | same as creationDate |
documentModifiedAt | string | Same as modificationDate (second name). | same as modificationDate |
fullText | string | Same as text (second name). | same as text |
extractedPageCount | integer | Same as pagesExtracted (second name). | same as pagesExtracted |
pagesProcessed | integer | Same as pagesExtracted (third name). | same as pagesExtracted |
textLayerPages | integer | Pages that had their own text layer (no OCR needed). | empty when the file failed |
ocr | object | OCR summary: enabled, language, pages, confidence. | never |
ocrPageCount | integer | Same as ocrPages. | never (0 without OCR) |
ocrStatus | string | disabled, done or not_needed. | empty when the file failed |
confidence | number | Mean OCR confidence 0-100 of the OCR pages. | empty when no page needed OCR |
lowConfidence | boolean | true when the OCR confidence is below 60. | empty when no page needed OCR |
textExtractionStatus | string | text_extracted, ocr, text_and_ocr, no_text or failed. | never |
statusDetail | string | Human summary ("3 of 15 pages read, 0 by OCR") or the error. | never |
warning | string | A warning, e.g. no text found or low OCR confidence. | empty when there is nothing to warn about |
warnings | array | The warnings as a list. | empty list when there is nothing to warn about |
recommendedAction | string | What to do about a failed or empty file. | empty when the file is fine |
errorCode | string | REQUEST_FAILED, NOT_PDF, PASSWORD_REQUIRED, FILE_TOO_LARGE or PARSE_FAILED. | empty when the file succeeded |
errorMessage | string | Same as error (second name). | empty when the file succeeded |
chunkIndex | integer | Always 0: one row per PDF, the chunks are inside chunks. | never |
chunkContinuation | boolean | Always false (one row per PDF). | never |
extractedAt | string | Same as scrapedAt (second name). | never |
processedAt | string | Same as scrapedAt (third name). | never |
summary | string | Extractive summary - the most representative sentences of the document. | empty with autoSummarize off, or for documents with almost no prose (forms) |
ledger | array | Statement transactions: date, description, amount, debit, credit, balance, page, line. | empty with statementLedger off or when the PDF is not a statement |
ledgerCount | integer | Number of transactions in ledger. | empty with statementLedger off |
contentHash | string | SHA-256 fingerprint of the extracted text. | empty with changeDetection off |
previousContentHash | string | Fingerprint from the last run. | empty with changeDetection off, or the first time a document is seen |
changed | boolean | true = new or changed since the last run. | empty with changeDetection off |
originalFields | object | The data row this PDF came from. | empty for PDFs from urls, base64Pdfs or documentFile |
Here is a real failed row from a PDF Text Extractor test run (the link did not exist), shortened:
{"url": "https://example.com/missing.pdf","fileName": "missing.pdf","status": "failed","error": "RuntimeError: HTTP 404","pdfIndex": 2,"sourceType": "url","textExtractionStatus": "failed","statusDetail": "RuntimeError: HTTP 404","recommendedAction": "Check that the link downloads the PDF in a browser; try the proxy input for blocked sites.","errorCode": "REQUEST_FAILED","scrapedAt": "2026-11-14T13:49:51Z"}
The scraper compared with similar tools
Before building PDF Text Extractor we compared the five most used tools of this kind. PDF Text Extractor offers every option that works without a login. This table shows the main features and how PDF Text Extractor handles them:
| Feature | Offered by (of 5) | PDF Text Extractor |
|---|---|---|
| PDF URLs / Base64 PDFs | 4 / 2 | yes - urls, base64Pdfs |
| full text / Markdown / per-page text | 2 each | yes - includeFullText, includeMarkdown, includePages |
| OCR scanned pages + language + page cap | 3 | yes - ocrScannedPages, ocrLanguage, ocrMaxPagesPerPdf |
| page range / max pages | 2 | yes - pageRange, maxPages |
| tables | 2 | yes - extractTables |
| RAG chunks (size / overlap) | 2 | yes - chunkForRag, chunkSize, chunkOverlap |
| password | 2 | yes - password (secret) |
| timeout / concurrency / file size cap / proxy | 2-3 | yes |
| every output field of the 5 (59) | 1-5 | yes - all 59 |
| webhook URL | 2 | Apify integrations / webhooks on the run do this |
Which columns can be empty
Measured in our latest test run (RKWklod4w5kMQKxsE, 2026-11-21, 20 rows). Every column below was checked against the original record of those rows: the value is not published there (or the column belongs to another row type or to an option that was off), so there is nothing to fill.
| Column | Empty rows | Why it is empty |
|---|---|---|
confidence | 20 of 20 | empty when no page needed OCR |
lowConfidence | 20 of 20 | empty when no page needed OCR |
recommendedAction | 20 of 20 | empty when the file is fine |
warning | 20 of 20 | empty when there is nothing to warn about |
warnings | 20 of 20 | empty list when there is nothing to warn about |
keywords | 18 of 20 | empty when not set in the file |
subject | 17 of 20 | empty when not set in the file |
author | 15 of 20 | empty when the file has no author |
title | 15 of 20 | empty when the file has no title |
tables | 13 of 20 | empty with extractTables off or when no table was found |
ledger / ledgerCount | 20 of 20 (statementLedger on) | the test PDFs are papers and forms, not statements - no transaction line |
previousContentHash | 20 of 20 (changeDetection on) | first run with a new memory name - nothing to compare with yet |
originalFields | 20 of 20 | the test PDFs came from urls, not from data rows |
summary | forms only | the tax forms have almost no prose sentences |
How much does the scraper cost?
PDF Text Extractor uses pay-per-result pricing: you pay for each row PDF Text Extractor saves (one row = one PDF file, whatever its page count), plus the Apify platform usage of the run.
| Apify plan | Price per 1,000 results (PDFs) |
|---|---|
| Free | $1.49 |
| Starter | $1.39 |
| Scale | $1.29 |
| Business | $1.19 |
Worked example: 200 research papers on the free plan cost 200 / 1,000 x $1.49 = $0.30 in result fees, plus platform usage for the processing time (text PDFs take about a second each; OCR adds about a second or more per scanned page). Our measured test run of 4 files (3 PDFs + 1 broken link, with tables, pages and chunks) cost a fraction of a cent in total.
How to cap the cost: set maxItems (PDF Text Extractor never saves more rows), cap the work per file with maxPages and ocrMaxPagesPerPdf, and set "Maximum cost per run" in the run options of Apify Console.
Tips for the scraper
- Use a page range to process only the pages you need from long documents.
- Turn on per-page text when you need page numbers for citations.
- Choose the OCR language of your scans; English is the default.
- Turn on RAG chunks to get embedding-ready pieces with overlap.
- Send files you cannot host as Base64 through the API.
Limits of the scraper
Known limits of PDF Text Extractor, measured in our tests:
- OCR takes about a second or more per page;
ocrMaxPagesPerPdfcaps it. - Text in complex multi-column layouts follows the order of the text layer.
- Password-protected PDFs need the
passwordinput. - Links that require a login or a browser session cannot be downloaded.
- Files over the size limit (default 50 MB) are reported as failed with FILE_TOO_LARGE.
- Metadata depends on the file: in our 20-PDF test run (18 research papers + 2 tax forms, all 20 succeeded)
titleandauthorwere set in 5 of 20 files,subjectin 3 andkeywordsin 2 - research papers made with LaTeX usually carry only creator, producer and dates. The error, warning and OCR-confidence fields stay empty when every file succeeds and no page needs OCR.
API usage of the scraper
You can start PDF Text Extractor from any language through the Apify API. All examples use input example 1.
Apify API (curl) - runs PDF Text Extractor and returns the rows in one call:
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~pdf-text-extractor/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \-H "Content-Type: application/json" \-d '{"urls": ["https://arxiv.org/pdf/1706.03762"], "includeMarkdown": true}'
Python (pip install apify-client):
from apify_client import ApifyClientclient = ApifyClient("<YOUR_API_TOKEN>")run = client.actor("neuro-scraper/pdf-text-extractor").call(run_input={"urls": ["https://arxiv.org/pdf/1706.03762"],"chunkForRag": True,})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["fileName"], row["status"], row["wordCount"], row["chunkCount"])
Node.js (npm install apify-client):
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });const run = await client.actor('neuro-scraper/pdf-text-extractor').call({urls: ['https://arxiv.org/pdf/1706.03762'],includeMarkdown: true,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items[0].markdown);
PDF Text Extractor also works with every Apify integration: start PDF Text Extractor from Make, Zapier or n8n, get a webhook when PDF Text Extractor finishes, or use PDF Text Extractor as a tool for AI agents through the Apify MCP server.
FAQ about the scraper
Do I need an account to use PDF Text Extractor?
No. PDF Text Extractor works with any public PDF link, or with files you send as Base64.
Why did PDF Text Extractor return fewer rows than my maximum?
maxItems is a maximum. PDF Text Extractor saves exactly one row per file you give, so 5 links give 5 rows, also when maxItems is 100.
Why is a field empty in PDF Text Extractor?
Metadata fields (title, author, subject, keywords) are empty when the file does not carry them - many PDFs do not. text, markdown, pages, tables and chunks are empty when the matching option is off. All content fields are empty on a failed row; errorCode, error and recommendedAction then say why.
How do I process only new documents with PDF Text Extractor?
Keep a list of the links you already processed (for example the url column of the last dataset) and give PDF Text Extractor only the new links; on a schedule, compare modificationDate to see changed files.
Can I run many PDFs in one run of PDF Text Extractor?
Yes. Put up to 100,000 links into urls and raise maxItems; maxConcurrency controls how many are processed at once.
How fast is PDF Text Extractor?
Text PDFs take about a second each; scanned pages add OCR time. The 4-file test run finished in under a minute.
Does PDF Text Extractor use a proxy?
Not by default - most PDF links download directly. Turn on proxyConfiguration (residential) only for websites that block data-center downloads.
Can PDF Text Extractor process scanned PDFs?
Yes. Pages without a text layer are read with OCR (8 languages), and each row says how many pages were OCR-read and how confident the OCR was.
Can PDF Text Extractor extract tables?
Yes. Turn on extractTables and every table comes back as rows of cells and as a Markdown table.
Can I export the PDF Text Extractor results to Excel or Google Sheets?
Yes. Every PDF Text Extractor dataset exports to CSV, Excel (XLSX), JSON, XML and HTML, and the Google Sheets integration can append the rows of PDF Text Extractor to a sheet after every run.
Is it legal to use the scraper?
PDF Text Extractor processes the files you give it. Documents can include personal data, which is protected by laws such as the GDPR in Europe and the CCPA in California, and they can be protected by copyright. Use PDF Text Extractor only for documents you have the right to process, and if you are unsure, ask a lawyer before you use PDF Text Extractor at scale.
Feedback on the scraper
Found a bug in PDF Text Extractor or missing a field? Open an issue on the PDF Text Extractor page in Apify Console. We read every report and improve PDF Text Extractor quickly.
Why use the scraper
The PDF Text Extractor is a PDF scraper and PDF data extractor for anyone who needs public PDF text data as clean data. The PDF Text Extractor handles web scraping, proxy rotation and retries for you, so you get a ready dataset instead of raw pages. Use the PDF Text Extractor for market research, competitor analysis, lead generation, analytics or monitoring, and export the results to JSON, CSV, Excel or Google Sheets.
- No login and no code: the PDF Text Extractor runs on Apify with one click or one API call.
- Pay per result: the PDF Text Extractor charges only for rows delivered - no monthly PDF API fee.
- Complete fields: the PDF Text Extractor returns every public field, with a stable schema for automation.
- Integrations: connect the PDF Text Extractor to Zapier, Make, n8n, Google Sheets, a webhook or your CRM.
The scraper use cases
- Market research: the PDF Text Extractor collects PDF text data at scale, so you can compare trends across weeks and niches.
- Competitor analysis: run the PDF Text Extractor on a schedule and export the dataset to Google Sheets or Excel to watch what competitors publish.
- Lead generation and B2B prospecting: the PDF Text Extractor gives a sales or agency team a clean list to load into a CRM.
- Content and social media monitoring: the PDF Text Extractor keeps a fresh copy of PDF data through an Apify schedule and a webhook.
- Analytics and dashboards: send the PDF Text Extractor output as JSON through the Apify API into Python, Node.js or a BI tool.
- Academic and data science projects: the PDF Text Extractor returns a consistent schema, ready for pandas, R or a notebook.
- Price, product and brand tracking: the PDF Text Extractor turns public PDF data into a dataset you can diff run by run.
- Automation workflows: connect the PDF Text Extractor to Zapier, Make or n8n so every new row starts your next step.
How to run it with the API, Python and Node.js
Start the PDF Text Extractor from the Apify Console, or call it from code. The PDF Text Extractor returns its dataset as JSON, CSV or Excel. With the Apify API you can run the PDF Text Extractor from Python or Node.js, wait for it to finish and read the rows, which makes the PDF Text Extractor easy to plug into an automation, a data pipeline or a scheduled export.
- Open the PDF Text Extractor on Apify and fill in the input (or send the same input as JSON to the API).
- Start the PDF Text Extractor. Follow the run log while the PDF Text Extractor collects public PDF data.
- Download the dataset as CSV, JSON, Excel or XLSX, or let a webhook send it on.
- Schedule the PDF Text Extractor to keep your PDF data fresh for monitoring and analytics.
Tips for better results
- Start small: run the PDF Text Extractor with a low maximum first, check the fields, then scale up the same input.
- Split big jobs: several smaller PDF Text Extractor runs (by keyword, URL list or date) finish faster and are easier to resume.
- Keep a history: name a dataset or use a schedule so each PDF Text Extractor run adds to your PDF data over time.
- Filter early: use the input filters of the PDF Text Extractor so you only pay for the PDF text data you really need.
- Automate the hand-off: a webhook or the Zapier and Make integrations can move every PDF Text Extractor result straight to Google Sheets, a CRM or a database.
- Watch the run log: the PDF Text Extractor writes what it is doing and why an item was skipped, so a surprising result is easy to explain.
The scraper FAQ
Get started
Open the PDF Text Extractor, paste your input and press Start. In a few minutes the PDF Text Extractor hands you clean PDF data as JSON, CSV or Excel, ready for analytics, monitoring, research or your CRM. Questions or a missing field? Write to us from the PDF Text Extractor page on Apify - we answer fast and add features users ask for.
More scrapers from Neuro Scraper
| Actor | What it extracts |
|---|---|
| ⭐ Facebook Reels Scraper | Facebook Reels with exact views, plays, every reaction type, comments and shares |
| Snapchat Profile Scraper | Snapchat profile data with all public fields, exported to JSON, CSV or Excel |
| Amazon Scraper | Amazon data with all public fields, exported to JSON, CSV or Excel |
| Instagram Reels Scraper | Instagram reels with all public fields, exported to JSON, CSV or Excel |
| Facebook Video Details Scraper | Facebook video details with all public fields, exported to JSON, CSV or Excel |
| Facebook Reels Scraper Advanced | Facebook reels advanced data with all public fields, exported to JSON, CSV or Excel |
| Facebook Reels Downloader | Facebook reels with all public fields, exported to JSON, CSV or Excel |
| Instagram Search Scraper | Instagram search data with all public fields, exported to JSON, CSV or Excel |
| TikTok Video Details Scraper | TikTok video details with all public fields, exported to JSON, CSV or Excel |
| Instagram Hashtag Scraper | Instagram hashtag data with all public fields, exported to JSON, CSV or Excel |
| TikTok Profile Scraper | TikTok profile data with all public fields, exported to JSON, CSV or Excel |
| Amazon Best Sellers Scraper | Amazon best sellers with all public fields, exported to JSON, CSV or Excel |
| Facebook Photos Scraper | Facebook photos with all public fields, exported to JSON, CSV or Excel |