> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-service-account.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PDF Reader

PDFReader is a reader class that allows you to read data from PDF files.

## Parameters

<Snippet file="pdf-reader-reference.mdx" />

## Methods

### `read()`

Reads a PDF and returns a list of documents.

| Parameter  | Type                                  | Default | Description                                                                       |
| ---------- | ------------------------------------- | ------- | --------------------------------------------------------------------------------- |
| `pdf`      | `Optional[Union[str, Path, IO[Any]]]` | `None`  | Path to the PDF file or a file-like object                                        |
| `name`     | `Optional[str]`                       | `None`  | Name override for the resulting documents                                         |
| `password` | `Optional[str]`                       | `None`  | Password to unlock the PDF. Falls back to the constructor `password` when not set |

### `async_read()`

Async variant of `read()`. Accepts the same parameters.
