PDF Text Extractor: Text, Pages and Metadata from PDF Links avatar

PDF Text Extractor: Text, Pages and Metadata from PDF Links

Pricing

from $2.00 / 1,000 documents

Go to Apify Store
PDF Text Extractor: Text, Pages and Metadata from PDF Links

PDF Text Extractor: Text, Pages and Metadata from PDF Links

Get the text of every PDF you link, page by page, with page count, language and word count. No OCR, no proxies, no login; robots.txt respected. You pay only for PDFs with readable text.

Pricing

from $2.00 / 1,000 documents

Rating

0.0

(0)

Developer

Rowcraft

Rowcraft

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 hours ago

Last modified

Share

Turn a list of PDF links into plain text you can search, analyse or feed to a language model. Give the actor the addresses of PDF files, or the addresses of web pages that link to them; it downloads each file once, politely, reads the text of every page and returns one row per document: the text, the page count, the title, the language, the word count and the dates stored in the file, as JSON, CSV or Excel.

It reads the text layer that most PDFs already contain, so it is fast and cheap: a typical report takes a few seconds. It does not run OCR, so a scan without a text layer comes back as textFound = false and costs nothing.

Input form of PDF Text Extractor: Text, Pages and Metadata from PDF Links

What you get

One row per PDF:

  • Identity: the address you gave, the address that answered after redirects (the row ID) and, when the PDF was found on a page, the page it came from
  • Text: the full text of the pages read, with a marker line such as --- page 3 --- between pages (or a form-feed character, your choice), plus optionally the text of each page as a list
  • Size of the text: page count, pages read, word count, character count
  • Language: detected from the text for English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Romanian and Swedish, or null when the text is too short or mixed
  • Document information: title (from the file, or the first line of the first page), producer and creator programs, creation and modification dates
  • File facts: size in bytes, a content hash that changes when the file changes, whether the file is encrypted
  • Status: textFound, maxPagesReached and, when no text could be delivered, the reason in error

The run also writes a COVERAGE record with one line per address you asked for (ok, page_read, no_text, encrypted, invalid, blocked, robots_disallowed, not_found, too_large, not_pdf, error or not_checked, with the reason) and a RUN_SUMMARY with counts, pages and words delivered and why the run stopped.

Why this actor

  • Pay only for documents with text. A scan without a text layer, a password-protected file, a damaged file, a file that is too large, a 404, an anti-bot page or a robots.txt refusal costs nothing. Scans, protected and damaged files are still delivered as a free row that says why, so you can see which ones need OCR.
  • Text that reads like text. Lines come from the position of the characters on the page, words that the PDF places without a space character still get a space, ligatures such as "fi" are spelled out, and soft hyphens and control characters are removed.
  • Page by page. The page marker (or the textByPage list) lets you cite a page, split the text for search, or send one page at a time to a model.
  • Whole reports. A document of any length is read up to the page limit you set (200 pages by default) and charged once; maxPagesReached tells you when the end was not read.
  • No people fields. The PDF author and keywords, which often hold a person's name or an e-mail address, are never read into the row.
  • Polite by design. robots.txt is read and obeyed on every host before any file is requested, with a pause between requests to the same host, no proxies and no attempt to get around a protection.
  • Made for schedules. Turn on Only new rows and a PDF is delivered, and charged, again only when the file changed: a new edition of a price list or a report at the same address comes through, an unchanged one does not.

How to use it

  1. Open the Actor and paste your links into PDF links, one per line. A column copied from a spreadsheet works.
  2. If you have web pages that link to PDFs (a reports page, a documentation index), paste the page addresses and turn on Collect PDF links from pages. The actor finds the links to .pdf files in each page and reads those files.
  3. For a first try keep the list short, or set Maximum documents delivered to a small number.
  4. Click Start. The status line shows progress; the run stops cleanly at your maximum or at the charge limit you set in the run options.
  5. Open the Dataset tab: the Overview, Text and File information views show the main columns. Download JSON, CSV, Excel, XML or HTML, or send the rows to Google Sheets, Slack, Make, n8n or Zapier with the Integrations tab.
  6. Open the COVERAGE record in the key-value store to see which addresses were not read and why.

Input

FieldWhat it does
urlsLinks to PDF files, or with collectPdfLinksFromPages addresses of pages that link to them, one per line. Up to 100,000 per run.
collectPdfLinksFromPagesRead the .pdf links found in each page. An address that turns out to be a PDF is read as a document. Default off.
maxItemsStop after this many documents with text are delivered. 0 = no limit. Free rows without text do not count.
includePagesAdd textByPage: one string per page. Default off, because it doubles the size of the row.
pageSeparatormarker (default): a line --- page N --- before each page. formfeed: a form-feed character between pages.
maxPagesPerDocumentPages read per document, default 200, up to 20,000.
maxFileMbLargest file that is downloaded, default 25 MB, up to 200 MB. It cannot exceed 10 percent of the memory of the run (25 MB at 256 MB, about 100 MB at 1 GB).
maxPdfLinksPerPageWith page collection: how many PDF links of each page are read, in page order. Default 50.
onlyNew, stateNameDeliver a PDF only when its file changed since the last run with the same state name
notifyUrl, notifyWhenEmptyA webhook that receives one message when the run ends; see Automation below
requestIntervalMsPause between two requests to the same host, default 1000 ms, minimum 250 ms

Example: three public PDFs, one row each.

{
"urls": [
"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
"https://bitcoin.org/bitcoin.pdf",
"https://www.irs.gov/pub/irs-pdf/fw9.pdf"
]
}

Example: the first two annual reports linked on a reports page, 30 pages of each, with the text of each page as a list.

{
"urls": ["https://www.federalreserve.gov/publications/annual-report.htm"],
"collectPdfLinksFromPages": true,
"maxPdfLinksPerPage": 2,
"maxPagesPerDocument": 30,
"includePages": true
}

Example: a daily check of a list of price lists that delivers only the files that changed, with a Slack message.

{
"urls": ["https://example.com/prices/2026.pdf", "https://example.org/catalogue.pdf"],
"onlyNew": true,
"stateName": "price-lists",
"notifyUrl": "https://hooks.slack.com/services/..."
}

Output

23 fields per row. Empty values are null, never missing, so CSV and Excel columns are stable.

FieldTypeExample
idstringhttps://www.federalreserve.gov/publications/files/2023-annual-repor…
urlstringhttps://www.federalreserve.gov/publications/files/2023-annual-repor…
finalUrlstringhttps://www.federalreserve.gov/publications/files/2023-annual-repor…
pageUrlstringhttps://www.federalreserve.gov/publications/annual-report.htm
titlestringAnnual Report, 2023
pagesinteger222
pagesReadinteger20
maxPagesReachedbooleanTrue
textFoundbooleanTrue
textstring--- page 1 --- REPORT TO CONGRESS 110th Annual Report of t
textByPagearrayText of each page as a list (only with "Text of each page as a list")
wordCountinteger5387
charCountinteger38810
languagestringen
producerstringPDFlib+PDI 9.3.0p6 (Linux-x86_64)
creatorstringXPP
createdAtstring2024-08-12T17:38:35.000Z
modifiedAtstring2024-09-09T17:16:29.000Z
fileBytesinteger2255266
contentHashstringaacf44d05ebbc21f
encryptedbooleanFalse
errorstringWhy no text was delivered (scan, password, damaged file); null for documents with text
checkedAtstring2026-10-17T08:26:45.719Z

Example rows

Two real rows from a run (long texts shortened here, complete in the dataset):

[
{
"id": "https://www.federalreserve.gov/publications/files/2023-annual-report.pdf",
"url": "https://www.federalreserve.gov/publications/files/2023-annual-report.pdf",
"finalUrl": "https://www.federalreserve.gov/publications/files/2023-annual-report.pdf",
"pageUrl": "https://www.federalreserve.gov/publications/annual-report.htm",
"title": "Annual Report, 2023",
"pages": 222,
"pagesRead": 20,
"maxPagesReached": true,
"textFound": true,
"text": "--- page 1 ---\n\nREPORT TO CONGRESS\n\n110th\nAnnual Report of the Board of\nGovernors of the Federal Reserve System\n\n2023\n\nBOARD OF GOVERNORS…",
"textByPage": null,
"wordCount": 5387,
"charCount": 38810,
"language": "en",
"producer": "PDFlib+PDI 9.3.0p6 (Linux-x86_64)",
"creator": "XPP",
"createdAt": "2024-08-12T17:38:35.000Z",
"modifiedAt": "2024-09-09T17:16:29.000Z",
"fileBytes": 2255266,
"contentHash": "aacf44d05ebbc21f",
"encrypted": false,
"error": null,
"checkedAt": "2026-10-17T08:26:45.719Z"
},
{
"id": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"finalUrl": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"pageUrl": null,
"title": "Form W-9 (Rev. March 2024)",
"pages": 6,
"pagesRead": 6,
"maxPagesReached": false,
"textFound": true,
"text": "--- page 1 ---\n\nForm W-9\n(Rev. March 2024)\nRequest for Taxpayer\nIdentification Number and Certification\nDepartment of the Treasury\nIntern…",
"textByPage": null,
"wordCount": 6380,
"charCount": 37717,
"language": "en",
"producer": "Designer 6.5",
"creator": "Designer 6.5",
"createdAt": "2024-03-06T13:18:13.000Z",
"modifiedAt": "2024-03-06T13:18:13.000Z",
"fileBytes": 140815,
"contentHash": "2d420cbb4123dcf1",
"encrypted": false,
"error": null,
"checkedAt": "2026-10-17T08:26:28.740Z"
}
]

Results can be downloaded as JSON, CSV, Excel, XML or HTML from the Dataset tab, or read through the Apify API.

Results of PDF Text Extractor: Text, Pages and Metadata from PDF Links in the Apify dataset view

What counts as "text found"

A document has text when it holds at least 10 letters or digits in the pages read and, for documents of more than three pages, on average at least five words per page. The second rule keeps a scan from counting as text only because a stamp or a page number was added on top of every picture. A one-page file with three words, such as a test document, counts as text.

When the rule fails, the row has textFound = false, text = null and the reason in error, it is delivered free of charge, and COVERAGE lists it as no_text, encrypted (a password is needed) or invalid (the file is damaged).

Pricing

Pay per result. You pay for each document whose text is delivered to your dataset, nothing else: no subscription, no minimum, no charge for the requests behind it.

Your Apify planPrice per 1,000 documentsPrice per document
Free plan$3.00$0.003
Starter plan$2.60$0.0026
Scale plan$2.30$0.0023
Business plan and above$2.00$0.002

Example: 1,000 documents cost $3.00 on the Free plan and $2.00 on the Business plan. The Apify platform usage of a run (compute and storage) is billed by Apify separately, as for every Actor. Reading a PDF takes one to three seconds at the default memory of 256 MB (more for very long documents), so expect a few cents of platform usage per 1,000 documents. A start event of $0.00005 is charged once per run (Apify default). Cap your spend: set Maximum total charge in the run options. The actor stops cleanly when the cap is reached and you keep everything delivered until then. The run summary (RUN_SUMMARY in the key-value store) says why a run stopped.

A document is charged when its text was read, whether all its pages or the first maxPagesPerDocument of them. Nothing is charged for scans, protected or damaged files, files above the size limit, addresses that answered 404 or with an anti-bot page, addresses closed by robots.txt, invalid or repeated entries, or files skipped by Only new rows because they did not change.

Automation: only new rows, notifications, schedules

Only new rows since the last run. Turn on onlyNew and the actor remembers every document it delivered to you (in a key-value store named rowcraft-pdf-text-extractor-state in your Apify account). The next run with the same stateName skips what you already have and you pay only for new rows. The first run delivers everything that matches. Use a different stateName for each schedule or search so they keep separate memories.

Notification when the run ends. Put a webhook address in notifyUrl and the actor sends one JSON POST with the number of new rows, links to the dataset (JSON and CSV) and the run. It works out of the box with Slack and Discord incoming webhooks (the message is in text and content), with Make, n8n and Zapier catch hooks, and with your own endpoint. By default it is sent only when there is at least one new row; notifyWhenEmpty sends it every time.

Schedules. Create a schedule in Apify Console (hourly, daily, weekly or cron) with onlyNew on. A daily schedule gives you a feed of new documents for the price of the new rows only.

Integrations. Send the results to Make, n8n, Zapier, Google Sheets, Slack, Google Drive, Airtable or any webhooks from the Integrations tab of the Actor, with no code. Apify also offers native actions for Make, n8n and Zapier.

API, SDKs and AI agents. Every run is available through the Apify API and the official JavaScript and Python clients; the Actor can also be called by AI agents through the Apify MCP server. The example input in the API tab is a working call.

For documents, "new" means the file itself: the actor remembers the address and the content hash of each file it delivered. A report that is replaced by a new edition at the same address is delivered, and charged, again; the same file seen again is skipped. Files delivered free without text are remembered too, so a daily schedule does not repeat them.

Use cases

  • Feed an AI pipeline: text with page numbers, ready to split into chunks for search, question answering or summaries, from the PDFs a company, an agency or a journal publishes.
  • Read annual and quarterly reports: extract the text of the reports of a list of companies or public bodies, then search for a figure, a risk or a name, or compare years.
  • Watch documents that are replaced: a daily or weekly schedule with Only new rows tells you when a price list, a terms document, a tender specification or a policy at a fixed address is replaced by a new version.
  • Build a document archive: one dataset with title, dates, language, page count and text for hundreds of public PDFs, searchable in a spreadsheet or a database.
  • Collect papers and white papers: point the actor at a page that links PDFs and get the text of all of them without opening each one.
  • Check what a PDF contains before you buy OCR: the free rows show which files in a list are scans, so only those go to an OCR service.

Ready-made examples, each with the input filled in (open one and press Start, or save it as your own task):

What this actor does not do

  • OCR. A scan without a text layer is reported with textFound = false; pictures are never read as text.
  • Tables and layout. The text follows the reading order stored in the file. Tables come out as lines of cells, columns of a multi-column page may be interleaved, and no table is rebuilt as rows and columns.
  • Forms. The text printed on a form is read; the values typed into its fields, signatures and annotations are not.
  • Passwords and protections. A password-protected file is reported as encrypted and not opened; the actor does not try passwords or bypass a protection.
  • Authors and keywords. Neither the PDF author nor the keywords are delivered, because they often name a person.
  • Other formats. Word, Excel, PowerPoint and image files are not read; only PDF files.
  • Pages that need a browser. Links that a page adds with JavaScript after it loads, and files behind a login, a form or a download button, are not found.

Limits and fair use

  • One request per second to the same host by default (minimum 250 ms); different hosts do not wait for each other. A new host costs one extra request for its robots.txt. A Crawl-delay line in a robots.txt is not read: if a site asks for a longer pause, raise Delay between requests.
  • File size: 25 MB by default, up to 200 MB, and never more than 10 percent of the memory of the run, because reading a PDF takes several times its size in memory. A bigger file is not downloaded and is listed as too_large. Give the run more memory to read bigger files.
  • Pages: 200 pages per document by default, up to 20,000. The text of one document is also cut at about 4 MB (2 MB when the page list is on, because the text is then stored twice), more than 1,000 pages of dense English text, so that a row stays below the dataset limit; the row then says maxPagesReached = true.
  • Speed: in our tests three small PDFs took five seconds in all, and reading 200 pages of a 4 MB report took two to three seconds on top of the download. At the default pause, 100 files from one host take about three to five minutes.
  • Anti-bot pages. An address that answers with a bot challenge or an access-denied page is reported as blocked and not charged. After 10 blocked addresses in a row the run stops and says why in the run summary, because the rest of the list would most likely be blocked too.
  • robots.txt is obeyed for every address the request touches, including redirect targets. If robots.txt disallows the file it is robots_disallowed; if robots.txt answers with a server error the file is not read, as the robots.txt standard (RFC 9309) requires.
  • Private addresses (localhost, home networks) are refused when the actor runs on the Apify platform.
  • Up to 100,000 addresses per run. The run stops 90 seconds before its timeout with the summary, the coverage and the Only new rows memory saved; for long lists raise the timeout or split the list.

Data source and licence

The data is the PDF files you point the actor at. The actor requests each address once, as a browser would, after checking robots.txt, reads the text layer of the file with the open-source PDF reader pdf.js from Mozilla, and delivers the text, the page count and the document information stored in the file. Nothing is kept after the run apart from the delivered rows, and the file itself is not stored.

The text of a PDF belongs to whoever wrote it. Which files you may copy, analyse or republish depends on their licence and on the law that applies to you; the actor gives you the text, the responsibility for using it stays with you.

Rowcraft is independent: this actor is not provided, endorsed or authorised by the owners of the websites and documents it reads or by the makers of the PDF reader it uses. Names of organisations in the examples are only the public addresses of files that anyone can open.

Privacy: no personal data

Rowcraft actors are built not to collect personal data:

  • No field of the row names a person. The PDF author and the keywords are never read, and no e-mail address or phone number appears in the title, producer or creator fields (an e-mail address or phone number in them is masked).
  • The actor sends no cookies, fills no forms, never logs in and reads no page of a site apart from the addresses you give and the PDF links found on them.
  • The text field is the content of the documents you chose. It is delivered as it is and is not filtered: if a document prints a name, an e-mail address or a phone number, it is in the text. Choose documents you are allowed to process, and apply the rules that fit your data.

You are responsible for using the data in line with the law that applies to you.

Other Rowcraft actors

All Rowcraft actors read official or public sources, deliver flat rows without personal data and support only-new runs and notifications:

FAQ

Does it read scanned PDFs? Not as text. A scan is a picture; this actor reads the text layer only and does not run OCR. Scans come back as a free row with textFound = false and the reason, so you can send just those to an OCR service. Many scanned documents already carry a hidden text layer from an earlier OCR run, and those are read normally.

Which PDFs can it read? Ordinary PDF files up to the size limit, with embedded or standard fonts. Files protected by a password, damaged files and files whose text was drawn as shapes or pictures give no text. Text in other scripts is returned as the file stores it; the language guess covers ten languages written in the Latin alphabet.

How is the language detected? From the most frequent function words of ten languages (English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Romanian, Swedish) in the first part of the text. It needs about 25 words and a clear winner; otherwise language is null. It is a guess, good for sorting a collection, not a legal fact.

Why is the result empty? Every address in the list was skipped or could not be read. The COVERAGE record gives the reason per address: an anti-bot page (blocked), robots.txt (robots_disallowed), a missing file (not_found), a file above the limit (too_large), a web page instead of a PDF (not_pdf), an invalid entry or a connection problem (error). A page address given without Collect PDF links from pages is not_pdf. With Only new rows on, files that did not change are skipped too. Nothing is charged for any of these, apart from the start event.

Do I pay for files without text? No. Documents are charged only when their text was read. Scans, protected files and damaged files are delivered free with textFound = false, and everything that could not be read is only listed in COVERAGE.

Is it legal to extract text from PDFs? The actor requests public files at the addresses you give, obeys robots.txt and reads what any PDF viewer can show. Whether you may copy or reuse the text depends on the copyright and licence of each document and on the law that applies to you.

Does it collect personal data? No personal data of its own: the author and keywords fields are not read and the row has no fields about people. The text is the content of your documents and is not filtered, so it contains whatever the documents print. See the Privacy section.

Why are some words glued together or split? The actor rebuilds spaces from the position of the characters, which works for the large majority of files. A PDF that draws every letter on its own, or sets text in unusual spacing, can still give glued or split words. The text is what the file contains; no spelling correction is applied.

Can I get the text of each page separately? Yes. Turn on Text of each page as a list and textByPage holds one string per page, in page order. The full text has a marker line before each page, or a form-feed character between pages if you chose that.

What happens to a very long document? Pages are read up to Maximum pages per document (200 by default) and the document is charged once. pages says how long the file is, pagesRead how much was read and maxPagesReached is true when the end was left out. Raise the limit to read more.

Can it follow links on pages? Yes, one level: with Collect PDF links from pages, every .pdf link found in the HTML of the pages you give is read, up to the number you set per page. It does not crawl further pages.

Can I call it from code or from an AI agent? Yes: through the Apify API, the JavaScript and Python clients, and the Apify MCP server. The API tab shows a working example with the input of this Actor.

Support and reviews

Problems, missing fields, questions: open an issue on the Issues tab of this Actor. We answer within one working day and fix confirmed bugs in the next release; the changelog lists every change.

If this Actor saved you time, a short review on its page helps other users find it and helps us keep improving it.