> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.retrieve_utils.extract_text_from_pdf

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### extract\_text\_from\_pdf

```python theme={null}
extract_text_from_pdf(file: str) -> str
```

Extract text from PDF files

<b>Parameters:</b>

| Name   | Description   |
| ------ | ------------- |
| `file` | **Type:** str |

<br />
