# Extract Tables from Selected PDF Pages

**Use case:** 

Extract only the pages you need from a public text-based PDF. This preset processes page 1 of a 16-page WARN report and returns records with source-page evidence. Change First page and Maximum pages for your document; each selected table page should include its header. $0.001 per run + $0.0025 per processed page: $0.0035 for this example. No OCR.

## Input

```json
{
  "pdfUrls": [
    "https://raw.githubusercontent.com/jsvine/pdfplumber/stable/tests/pdfs/WARN-Report-for-7-1-2015-to-03-25-2016.pdf"
  ],
  "startPage": 1,
  "maxPages": 1,
  "strategy": "lines",
  "mergeRepeatedHeaders": false
}
```

## Output

```json
{
  "page": {
    "label": "Page"
  },
  "status": {
    "label": "Status"
  },
  "tablesDetected": {
    "label": "Tables detected"
  },
  "rows": {
    "label": "Rows"
  },
  "records": {
    "label": "Records"
  },
  "warnings": {
    "label": "Warnings"
  }
}
```

## How it works

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

The PDF Tables to Records — JSON, CSV & Page Sources Actor is ready to run with the inputs already set for "Extract Tables from Selected PDF Pages". [Sign up or log in](https://console.apify.com/create-task-from-example/2xVtp93xXwPalcGm6) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract Tables from Selected PDF Pages" task

The PDF Tables to Records — JSON, CSV & Page Sources Actor will start running based on the input automatically. You can also change all the input fields, like PDF URLs, first page, and more, to match your specific use case.

### 3. Receive the "Extract Tables from Selected PDF Pages" 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 page, status, tables detected, 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 "Extract Tables from Selected PDF Pages" task via API](https://apify.com/gertner-data/pdf-table-records.md).

## About this Actor

This example demonstrates how to use [PDF Tables to Records — JSON, CSV & Page Sources](https://apify.com/gertner-data/pdf-table-records.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/gertner-data/pdf-table-records.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/gertner-data/pdf-table-records.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`).
