PDF Text Extractor (PDF to Text from URL) avatar

PDF Text Extractor (PDF to Text from URL)

Pricing

from $2.40 / 1,000 pdfs

Go to Apify Store
PDF Text Extractor (PDF to Text from URL)

PDF Text Extractor (PDF to Text from URL)

Extract the text of PDF files from URLs, page by page, with title and dates. Built for AI agents, RAG pipelines and data entry. Scanned PDFs are flagged.

Pricing

from $2.40 / 1,000 pdfs

Rating

0.0

(0)

Developer

plainrecords

plainrecords

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Features

Limited permissions

Share

Turn PDF links into clean text. Give the Actor one or more public PDF URLs and get the full text, the text of each page, the page count and the document's title and dates. Built for AI agents, RAG pipelines, document search and data entry.

The PDFs are processed inside the Actor with pdf.js. No third-party API, no OCR fees, predictable cost per file.

What you get

One row per PDF. Every row has query, status (ok, not_found or error), source and retrievedAt, plus:

FieldExampleMeaning
fileNameannual-report-2025.pdfFrom the server or the URL
sizeBytes482113File size
pageCount / pagesExtracted48 / 48Pages in the file and pages read
truncatedfalseTrue if Max pages cut the document short
title / subject / keywordsAnnual Report 2025From the PDF metadata
createdAt / modifiedAt2026-03-02T10:15:00.000ZFrom the PDF metadata
hasTextLayertrueFalse when the PDF is scanned images
charCount / wordCount153204 / 24877Size of the extracted text
textAnnual Report 2025 ...Full text, pages separated by a blank line
pages[{ "page": 1, "text": "...", "chars": 1840 }]Text per page (can be switched off)

The author field of the PDF metadata is not returned.

Use cases

  • AI agents and chatbots: let an agent read a PDF it found and answer questions about it.
  • RAG and search: feed page-level text into a vector store with page numbers for citations.
  • Data entry: pull text from invoices, price lists, tenders, filings or reports for parsing.
  • Monitoring: extract the text of the same PDFs on a schedule and compare versions.

How to use

  1. Paste PDF URLs into PDF URLs, one per line. The link must lead to the file itself.
  2. Optional: choose Pages (for example 1-3, 10-), Max pages per PDF, and whether to include text per page.
  3. Set Max results to cap the cost, then click Start. Export as JSON, CSV or Excel, or read the dataset through the API.

Input example

{
"queries": ["https://www.rfc-editor.org/rfc/rfc9100.pdf"],
"includePages": true,
"maxResults": 10
}

Output example

{
"query": "https://www.rfc-editor.org/rfc/rfc9100.pdf",
"status": "ok",
"url": "https://www.rfc-editor.org/rfc/rfc9100.pdf",
"finalUrl": "https://www.rfc-editor.org/rfc/rfc9100.pdf",
"fileName": "rfc9100.pdf",
"sizeBytes": 134620,
"pageCount": 7,
"pagesExtracted": 7,
"truncated": false,
"title": "RFC 9100: Sensor Measurement Lists (SenML) Features and Versions",
"subject": "This short document updates RFC 8428, ...",
"keywords": null,
"creatorTool": "xml2rfc 3.9.1",
"producer": "cairo 1.16.0",
"createdAt": "2021-08-16T07:53:34.000Z",
"modifiedAt": "2021-08-16T21:53:35.000Z",
"pdfVersion": "1.5",
"hasTextLayer": true,
"charCount": 13626,
"wordCount": 2131,
"text": "RFC 9100\nSensor Measurement Lists (SenML) Features and\nVersions\nAbstract\n...",
"pages": [
{ "page": 1, "text": "RFC 9100\nSensor Measurement Lists (SenML) Features and\nVersions\nAbstract\n...", "chars": 1674 },
{ "page": 2, "text": "Table of Contents\n1. Introduction\n1.1. Terminology\n...", "chars": 1478 }
],
"retrievedAt": "2026-11-15T00:43:18.415Z",
"source": "PDF URL (text layer extracted with pdf.js)"
}

Pricing

You pay per PDF whose text was extracted (status ok). Broken links, non-PDF pages, password-protected files and files above the size limit are free. The price per 1,000 PDFs is on the Pricing tab and is lower on higher Apify plans.

Use from AI agents and the API

This Actor runs with limited permissions, so AI agents and MCP clients can call it directly through the Apify API or the Apify MCP server. For long documents, set Include text per page to false and use text, or keep the pages to cite page numbers.

Data source and limits

  • Works on PDFs with a text layer (most PDFs made by software). Scanned PDFs return hasTextLayer: false and little or no text; there is no OCR.
  • Only public URLs. Files behind a login or a paywall are not supported.
  • Default limits: 50 MB per file and 500 pages per file. Both can be changed in the input.
  • Tables come out as text lines, not as structured cells.

Support

Open an issue on the Issues tab. We answer within 24 hours and post what went wrong and when it is fixed.