> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/word/read-pdf.md).

# Read PDF

This is pre-built action located under @Word element. This action reads the data from pdf which is opened by blob URL and download it in local file

### Syntax

**Input:** `(url;<Page No>) or (url;<file path>)`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>Page No<br>(Required)</td><td>This input is to read the data from pdf, page number is required</td><td></td></tr><tr><td>File path<br>(Required)</td><td>This input is to download the pdf, file path is required where pdf will save</td><td></td></tr></tbody></table>

**Output:** `<Dynamic Variable>(Optional)`

<table><thead><tr><th>Argument</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>Dynamic Variable<br>(Optional)</td><td>The dynamic variable is optional, as it is used to store the status as either True or False and display it later.</td><td></td></tr></tbody></table>

### Example: Read the content from Sample.pdf and download it in local file

For reading content from PDF: **Read PDF** action takes input as **url** text and page no(**1**) and display Pass or Fail as status

For downloading PDF: **Read PDF** action takes input as **url** text and file path (C:\Users\john.smith\Downloads) and display Pass or Fail status

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FXqkEdReVEEWhkr6NxuoY%2Fimage.png?alt=media&amp;token=30621672-cc6f-42ce-bfa2-c7e43fa3d847" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avoautomation.com/avo-assure/actions/word/read-pdf.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
