PDF Text Extractor: text, pages, outline, links, RAG chunks avatar

PDF Text Extractor: text, pages, outline, links, RAG chunks

Pricing

from $1.00 / 1,000 pdf extracteds

Go to Apify Store
PDF Text Extractor: text, pages, outline, links, RAG chunks

PDF Text Extractor: text, pages, outline, links, RAG chunks

Turn PDF URLs or uploaded files into clean text with per-page text, metadata, outline (bookmarks), links and RAG-ready chunks. Page ranges and passwords. $2 per 1,000 PDFs, failed and scanned PDFs free.

Pricing

from $1.00 / 1,000 pdf extracteds

Rating

0.0

(0)

Developer

Kevin Rajan

Kevin Rajan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

8 days ago

Last modified

Features

Limited permissions

Share

Turn PDF links or uploaded PDF files into clean, structured text. For each PDF you get:

  • the full text and the text of each page
  • document metadata
  • the outline (bookmarks)
  • the clickable links
  • optional chunks sized for retrieval-augmented generation (RAG)

It costs $2 per 1,000 PDFs, with a $0.00005 start fee. Failed, password-locked and scanned (image-only) PDFs are free.

Use it for:

  • RAG and LLM pipelines. Chunks come with the page span they cover, ready for embeddings.
  • Search indexes and knowledge bases. Get clean full text plus the title, outline and dates.
  • Research and compliance. Extract government forms, filings, papers and manuals in bulk.
  • Change monitoring. Each file gets a SHA-256 hash, so you can tell when a PDF at the same URL changed.

What it does

  1. Downloads each PDF. Redirects are followed. The size limit and time limit are enforced during the transfer, and a link that turns out to be a web page is stopped after its first kilobyte.
  2. Extracts the text with PDFium, the PDF engine inside Google Chrome. It is fast and accurate on multi-column layouts and forms, and handles both RC4 and AES-256 encryption.
  3. Cleans the text. Words split across lines with soft hyphens are rejoined, line ends are normalized and control characters are removed.
  4. Flags scanned pages (images with no text layer). A PDF that is entirely scanned is reported as no_text and is not charged.

Every PDF runs in its own process with a hard time limit. A broken or hostile file cannot hang or crash the run; it becomes a row with an error code.

Input

FieldWhat it doesDefault
urlsUp to 5,000 links to PDF filesIRS Form 1040 and a W3C sample (only when the input is empty)
base64PdfsUp to 50 inline PDFs, as base64 strings or {"filename", "data"} objects, for files that are not on a public URLnone
pageRangePages to extract, for example 1-5, 8, 12-all pages
passwordPassword for protected PDFs. The field is stored encrypted.none
includeText, includePages, includeLinksTurn individual output fields on or offon
chunkSize, chunkOverlapChunk size in characters for RAG (0 = off), and the overlap between chunks0, 200
maxPdfSizeMb, timeoutSecs, concurrencyLimits per PDF, and the number of PDFs processed in parallel50 MB, 120 s, 4
{
"urls": ["https://www.irs.gov/pub/irs-pdf/f1040.pdf"],
"pageRange": "1-2",
"chunkSize": 2000
}

Output

One dataset row per PDF. Shortened example:

{
"url": "https://www.irs.gov/pub/irs-pdf/f1040.pdf",
"fileName": "f1040.pdf",
"status": "ok",
"error": null,
"charged": true,
"fileSizeBytes": 220237,
"sha256": "3d31c226df0d189c…",
"pdfVersion": "1.7",
"pageCount": 2,
"isEncrypted": false,
"isTagged": true,
"title": "2025 Form 1040",
"subject": "U.S. Individual Income Tax Return",
"creator": "Designer 6.5",
"createdAt": "2026-01-02T13:24:31Z",
"textLayer": "full",
"scannedPages": [],
"wordCount": 2230,
"text": "Form 1040 U.S. Individual Income Tax Return 2025 …",
"pages": [{"page": 1, "label": null, "text": "…", "charCount": 5341, "wordCount": 1098}],
"outline": [],
"links": [],
"chunks": [{"index": 0, "text": "…", "pageStart": 1, "pageEnd": 1, "charCount": 1999}],
"truncated": [],
"processingMs": 391
}

A book-like PDF also fills outline (for example 122 bookmarks for IRS Publication 17) and links (146 links). Dates are converted to UTC from the time zone written in the PDF. The Store view has a PDFs table and a Text table. You can export as JSON, CSV, Excel or HTML, or connect the dataset to Make, Zapier, Google Sheets or a webhook.

Status and error codes

statusMeaningCharged
okText extractedYes
no_textNo text layer: a scan or an image-only PDF (see scannedPages)No
failedSee error: http_404, timeout, unreachable, too_large, not_pdf, password_required, wrong_password, corrupt, parse_timeout, parse_failed, page_range_out_of_boundsNo
skippedYour maximum charge per run was reachedNo

Pricing

Pay per event, with prices that fall at higher Apify subscription tiers:

EventFree / BronzeSilverGoldPlatinumDiamond
PDF extracted (up to 1,000 pages)$0.002$0.0015$0.001$0.001$0.001
Actor start$0.00005

A PDF over 1,000 pages counts as one event per started 1,000 pages. Failed, scanned and skipped PDFs are free. To control spend, set a maximum charge per run: the Actor stops cleanly when it reaches the limit.

How it compares

Measured on 2026-11-15, on the same two PDFs (IRS Form 1040 and a W3C sample table):

This Actorautomation-lab/pdf-text-extractormemo23/pdf-text-extractor
Price per PDF (Free plan)$0.002$0.00345$0.005
Start fee$0.00005$0.005$0.005
Cost of this 2-PDF run$0.00405$0.0119$0.015
DatesUTC, offset appliedLocal time labelled as UTC (6 h off on Form 1040)in metadata
Outline / bookmarksYesNoNo
Clickable linksYesNoNo
RAG chunks with page spanYesNoNo
Page ranges, passwords, base64 inputYesNoYes
Scanned-page detectionPer page, not chargedStatus flagOCR (paid per page)
Author namesNot output (personal data)OutputOutput
Markdown, OCRNoNoYes

If you need OCR for scanned documents, memo23's Actor offers it at $0.015 per page. For text-layer PDFs, this Actor is cheaper and returns more structure.

FAQ

Can it read scanned PDFs? It detects them and lists the scanned pages in scannedPages, but it does not run OCR. Fully scanned PDFs are not charged.

Why is the author missing? The Author field usually holds a person's name. It is left out so your dataset contains no personal data. Title, subject, keywords, the creating application, the producer and dates are all kept.

What about very large PDFs? A dataset row can hold up to 9 MB. When a PDF's text exceeds that, the row drops the chunks, then the pages, then cuts the text, and lists what was cut in truncated. To get everything from a book-length PDF, split it with pageRange (for example 1-500 and 501-).

How do I send a file that isn't online? Call the Actor through the API with base64Pdfs, for example [{"filename": "report.pdf", "data": "<base64>"}].

Is my password logged? No. The input field is stored encrypted and is only used to open the PDF.

Is this legal? You choose which PDFs to process. Only process documents you are allowed to access, and respect each site's terms of use.

Something broke? Open an issue on the Issues tab with the PDF URL. Fixes for specific files usually ship the same day.