PDF Text Extractor API — Full Text, Per-Page Text & Metadata avatar

PDF Text Extractor API — Full Text, Per-Page Text & Metadata

Pricing

$0.50 / 1,000 pdf page with text extracteds

Go to Apify Store
PDF Text Extractor API — Full Text, Per-Page Text & Metadata

PDF Text Extractor API — Full Text, Per-Page Text & Metadata

Extract text and metadata from PDF URLs: one row per document or one row per page for RAG chunking. Page ranges, encrypted PDFs without a password, clear skip messages. No browser, no proxy. Pay only for pages with text.

Pricing

$0.50 / 1,000 pdf page with text extracteds

Rating

0.0

(0)

Developer

Backyard Tools

Backyard Tools

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

**Pdf text extractor API** — Extract text and metadata from PDF URLs, per document or per page for RAG. Page ranges, encrypted PDFs, no browser. Pay only for pages with text.

Give the actor PDF links, get back the text and the document metadata as clean structured data — one row per document, or one row per page for RAG / LLM chunking. Fast text-layer extraction with pypdfium2 (Google's PDFium, the PDF engine inside Chrome): no browser, no proxy, no OCR guesswork.

You only pay for pages that actually contained text — blank and scanned-image pages are free.

Pdf text extractor API — input

Each line of targets is one PDF URL, optionally with options in front:

LineReturns
https://example.com/report.pdf1 row: the whole document's text (pages marked --- Page N ---)
pages:1-5 https://example.com/report.pdfonly pages 1–5 (1-3,7 also works)
perpage: https://example.com/report.pdf1 row per page (page_number set)
perpage:pages:2-4 https://example.com/report.pdfboth
{
"targets": [
"https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"perpage:pages:1-2 https://www.irs.gov/pub/irs-pdf/fw9.pdf"
],
"maxItems": 100
}

maxItems is the maximum number of rows (documents, or pages in perpage: mode).

Pdf text extractor API — output fields

Field
url, file_name, file_size_bytesthe file you gave
page_countpages in the document
page_numberpage of this row (perpage: mode), otherwise empty
pages_extractedpages read for this row
textextracted text, whitespace tidied
text_chars, word_countsize of the text
has_text_layerfalse means the pages are images (a scan) — this actor does not OCR
title, author, subject, keywords, creator, producerdocument metadata, when present
creation_date, modification_dateISO-style dates from the PDF metadata
is_encryptedthe PDF was encrypted (only files that open without a password are read)
text_truncatedtext was cut at 4 MB for one row — use perpage: for very large files
failed_pagespages that could not be read (the rest of the document is still returned)

Files that cannot be used (not a PDF, HTTP error, password-protected, damaged, over 100 MB) are skipped with a clear message in the log and are not charged.

Tested (2026-11-18)

FileResult
IRS Form W-9 (6 pages)37,679 characters; pages:1-2 and perpage: modes return the same text per page
IRS Publication 17 (142 pages, 3.1 MB)952,773 characters, 0 failed pages, about 2 seconds including the download
IRS Form 1040 Instructions (126 pages, 4.4 MB)601,446 characters, 0 failed pages, about 2 seconds including the download
AES-256 encrypted PDF without a user passwordread (is_encrypted: true)
password-protected PDF / damaged PDF / HTML saved as .pdf / HTTP 404skipped with a message, 0 rows
two blank pages (no text layer)has_text_layer: false, 0 pages charged

Use cases

  • RAG and LLM pipelines: per-page text ready for chunking and embedding
  • Document processing: pull text out of reports, filings, manuals and papers in bulk
  • Search and archiving: index the text and metadata of a PDF library
  • Monitoring: re-read a published PDF on a schedule and compare the text

Limits

  • No OCR: scanned PDFs return has_text_layer: false and empty text
  • Text-layer order follows the PDF itself; complex multi-column layouts may interleave
  • Use files you have the right to process; the actor downloads exactly the URLs you give and nothing else

Pricing

Pay per event: $0.50 per 1,000 pages with text. Pages without text are free.