# 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="/files/zV4KrnDfP5zl82M2leU5" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
