# PDF Text Extractor (`signalfeed/pdf-text-extractor`) Actor

Extract clean text from PDFs at any URLs, one row per page, with title, author and page count. Page ranges, scanned-PDF detection, no file size surprises. $0.50 per 1,000 pages.

- **URL**: https://apify.com/signalfeed/pdf-text-extractor.md
- **Developed by:** [Aaron Rabinowe](https://apify.com/signalfeed) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## PDF Text Extractor: clean text from any PDF URL, page by page

**Extract the text from PDFs at any URLs, for $0.50 per 1,000 pages.** Paste links to reports, research papers, filings, invoices, manuals or brochures and get one clean row per page, with the document's title, author and page count, ready for search, analysis or an AI pipeline.

Example: the 15-page "Attention Is All You Need" paper and a 6-page IRS form extract in about 2 seconds.

### What people use it for

- **AI & RAG pipelines:** turn PDF libraries into clean, page-chunked text for embeddings and question-answering.
- **Research & monitoring:** extract text from regulatory filings, earnings releases, tenders and academic papers.
- **Data entry automation:** pull text from invoices, forms and contracts for downstream parsing.
- **Search & archiving:** make PDF collections searchable.

### Input

```json
{ "pdfUrls": ["https://arxiv.org/pdf/1706.03762", "https://www.irs.gov/pub/irs-pdf/fw9.pdf"], "pages": "1-3", "maxPages": 500 }
```

### Output (one row per page)

`url`, `page`, `text`, `characters`, `documentTitle`, `documentAuthor`, `documentCreatedAt`, `documentPageCount`, `scrapedAt`. The `SUMMARY` record reports each PDF's page count, pages saved, and any problem: not a PDF, password-protected, or scanned with no text layer.

### Pricing

**$0.50 per 1,000 pages** ($0.0005 per page) on the free plan, cheaper on larger Apify plans. Set *Max pages* or a maximum cost per run and the Actor stops exactly there.

### FAQ

**My PDF returned empty text.** It's probably a scanned document (images only). This Actor reads the text layer and doesn't do OCR; the summary flags these files.

**Password-protected PDFs?** PDFs with an empty owner password open fine. Fully encrypted ones are reported, not guessed.

**Limits?** Files up to 100 MB. Large documents are processed page by page.

### More questions

**Does it work on scanned PDFs?**

It flags pages with no text layer (scans) so you can route them to OCR. Text-based PDFs are extracted directly and fast.

**Can I extract only some pages?**

Yes. Set a page range to skip covers and appendices and pay only for the pages you need.

**Is it good for RAG?**

Yes. One row per page with clean text makes chunking and citing sources easy.

**How do I run it on a schedule?**

In Apify Console, open the Actor and click **Schedule**: hourly, daily or any cron expression. Each run's results land in a new dataset you can export as CSV, Excel or JSON.

**Can I call it from my own code or no-code tools?**

Yes. Use the Apify API or the official Python and JavaScript clients, or connect it to Make, Zapier, n8n, Google Sheets or a webhook through Apify's built-in integrations.

**Is there a free trial?**

Apify's free plan includes monthly platform credit, enough to test this Actor on your real data before paying anything.

### More tools from the same developer

- [Ats Jobs Scraper](https://apify.com/signalfeed/ats-jobs-scraper): every open job from a company's careers page (Workday, Greenhouse, Lever, Ashby and more)
- [Tech Job Search](https://apify.com/signalfeed/tech-job-search): search 4,400+ tech and startup career pages by keyword
- [Remote Jobs Search](https://apify.com/signalfeed/remote-jobs-search): remote roles straight from company career pages
- [Job Salary Data](https://apify.com/signalfeed/job-salary-data): real salary ranges from live job postings
- [Hiring Companies Finder](https://apify.com/signalfeed/hiring-companies-finder): companies hiring for a role right now (sales hiring signals)
- [Website Contact Extractor](https://apify.com/signalfeed/website-contact-extractor): emails, phones and social profiles from a list of websites
- [Domain Intelligence](https://apify.com/signalfeed/domain-intelligence): WHOIS/RDAP dates, DNS, email provider and tech stack for domains
- [Sitemap Url Extractor](https://apify.com/signalfeed/sitemap-url-extractor): every URL a website lists in its sitemaps
- [Article Extractor](https://apify.com/signalfeed/article-extractor): clean Markdown of any web page, ready for LLMs and RAG
- [Website Screenshot](https://apify.com/signalfeed/website-screenshot): full-page and mobile screenshots without cookie banners
- [Rss Feed Reader](https://apify.com/signalfeed/rss-feed-reader): any RSS or Atom feed as clean JSON

Questions or a feature request? Open an issue on the Actor's **Issues** tab and I'll usually reply within a day.

# Actor input Schema

## `pdfUrls` (type: `array`):

Direct links to PDF files (reports, papers, invoices, filings, manuals…).

## `pages` (type: `string`):

Optional page range for every PDF, e.g. <code>1-3,7</code> or <code>2-</code>. Leave empty for all pages.

## `maxPages` (type: `integer`):

Stop after this many pages. You are charged per page saved.

## Actor input object example

```json
{
  "pdfUrls": [
    "https://arxiv.org/pdf/1706.03762"
  ],
  "maxPages": 100
}
```

# Actor output Schema

## `pages` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "pdfUrls": [
        "https://arxiv.org/pdf/1706.03762"
    ],
    "maxPages": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("signalfeed/pdf-text-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "pdfUrls": ["https://arxiv.org/pdf/1706.03762"],
    "maxPages": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("signalfeed/pdf-text-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "pdfUrls": [
    "https://arxiv.org/pdf/1706.03762"
  ],
  "maxPages": 100
}' |
apify call signalfeed/pdf-text-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,signalfeed/pdf-text-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ELDybxczqTvKbzbdS/builds/qiqPwexhm7a92gC7e/openapi.json
