# Convert PDF files to text in bulk

**Use case:** 

Paste links to many PDFs and get the full text of each one as a single clean record, ready for search, AI summarization or a database. Digital PDFs are read from their text layer, which is fast and cheap. Any scanned pages are sent to OCR automatically, so mixed documents come out complete.

## Input

```json
{
  "urls": [
    "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
    "https://www.irs.gov/pub/irs-pdf/fw4.pdf",
    "https://www.irs.gov/pub/irs-pdf/f1040.pdf"
  ],
  "languages": [
    "eng"
  ],
  "ocrMode": "auto",
  "outputMode": "document",
  "includeLines": false,
  "maxPagesPerFile": 200,
  "ocrDpi": 300,
  "minTextCharsPerPage": 25
}
```

## Output

```json
{
  "url": {
    "label": "File",
    "format": "link"
  },
  "fileType": {
    "label": "Type",
    "format": "text"
  },
  "pageCount": {
    "label": "Pages",
    "format": "number"
  },
  "pagesProcessed": {
    "label": "Processed",
    "format": "number"
  },
  "ocrPages": {
    "label": "OCR pages",
    "format": "number"
  },
  "textLayerPages": {
    "label": "Text-layer pages",
    "format": "number"
  },
  "avgOcrConfidence": {
    "label": "OCR confidence",
    "format": "number"
  },
  "wordCount": {
    "label": "Words",
    "format": "number"
  },
  "text": {
    "label": "Text",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The PDF & Image to Text - OCR, Scanned PDFs, Bulk Text Extraction Actor is ready to run with the inputs already set for "Convert PDF files to text in bulk". [Sign up or log in](https://console.apify.com/create-task-from-example/JBSLH4aHJfsQm7LGf) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert PDF files to text in bulk" task

The PDF & Image to Text - OCR, Scanned PDFs, Bulk Text Extraction Actor will start running based on the input automatically. You can also change all the input fields, like file urls, document languages, and more, to match your specific use case.

### 3. Receive the "Convert PDF files to text in bulk" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as file, type, pages, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Convert PDF files to text in bulk" task via API](https://apify.com/cuestadata/pdf-image-text-extractor.md).

## FAQ

### What does the bulk PDF to text task output?

The bulk PDF to text task outputs one record per PDF with the full text, page count, word count and how many pages needed OCR.

### How much does bulk PDF to text conversion cost?

Bulk PDF to text conversion costs about $0.20 per 1,000 digital pages. Scanned pages that need OCR cost about $3 per 1,000 pages.

### Can I send the PDF text to an AI model?

Yes. Run the bulk PDF to text task from the Apify API, Make, Zapier, n8n or an MCP-enabled AI agent and pass the text to any model.

## About this Actor

This example demonstrates how to use [PDF & Image to Text - OCR, Scanned PDFs, Bulk Text Extraction](https://apify.com/cuestadata/pdf-image-text-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/cuestadata/pdf-image-text-extractor.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/cuestadata/pdf-image-text-extractor.md

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`).
