# 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&#x26;token=30621672-cc6f-42ce-bfa2-c7e43fa3d847" alt=""><figcaption></figcaption></figure>
