# Read only the first page of many PDF reports

**Use case:** 

Read just page 1 of each PDF in a list, here two long IRS publications (Publication 15 and 17), to get titles and summaries fast without the full text. pageCount still shows the length of each file.

## Input

```json
{
  "urls": [
    "https://www.irs.gov/pub/irs-pdf/p15.pdf",
    "https://www.irs.gov/pub/irs-pdf/p17.pdf"
  ],
  "pages": "1",
  "maxItems": 50
}
```

## Output

```json
{
  "fileName": {
    "label": "File",
    "format": "string"
  },
  "pageCount": {
    "label": "Pages in file",
    "format": "integer"
  },
  "pagesReturned": {
    "label": "Pages read",
    "format": "integer"
  },
  "charCount": {
    "label": "Characters",
    "format": "integer"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "url": {
    "label": "PDF URL",
    "format": "string"
  }
}
```

## How it works

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

The PDF to Text Extractor – Page Text & Metadata Actor is ready to run with the inputs already set for "Read only the first page of many PDF reports". [Sign up or log in](https://console.apify.com/create-task-from-example/PNbXH882zCQuCTRYW) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Read only the first page of many PDF reports" task

The PDF to Text Extractor – Page Text & Metadata Actor will start running based on the input automatically. You can also change all the input fields, like PDF URLs, pages, and more, to match your specific use case.

### 3. Receive the "Read only the first page of many PDF reports" 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, pages in file, pages read, 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 "Read only the first page of many PDF reports" task via API](https://apify.com/justaduck/pdf-to-text-extractor.md).

## FAQ

### Is a one-page read cheaper?

The price is per PDF, not per page, but a one-page read is faster and keeps the output small.

### What does pageCount show?

The total number of pages in the file, even when only page 1 is read.

### What if a file is password-protected?

It is skipped, not charged, and listed with the reason in the run summary.

### Can I use other page ranges?

Yes, for example 1-3,5 or 10- for page 10 to the end.

## About this Actor

This example demonstrates how to use [PDF to Text Extractor – Page Text & Metadata](https://apify.com/justaduck/pdf-to-text-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/justaduck/pdf-to-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/justaduck/pdf-to-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`).
