---
schema_version: "1"
id: 975c123f89b1a258df76f75a55c9175df073b09b3344d6718aad30e694acc30f
title: Read PDF File
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-file-operations-read-pdf-file.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-file-operations-read-pdf-file
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 77ec0897b16baf9bf34ca343a7aab46cc0372e8556b55b507a1e1136ee1db1ff
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Read PDF File

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

With the _Read PDF File_ action step, you can read text from a PDF file.

## Properties

- **File Settings**

  - **Directory Path** (String): Path to the folder in which the PDF file is located.

  - **File Name** (String): Name of the PDF file.

  - **Password protected** (Boolean): Select this option if the PDF file is password protected.

- **Read Mode**

  - **Read form field data and annotations**: Select this option to read data from form fields and
    annotations in the PDF file.

  - **Read Mode**: Read mode for the PDF document. Available modes: **Read entire file**, **Read
    page range**, and **Read text in selected area**.

  - **Read text from page** (Integer): Read the file starting from this page.

  - **Read text to page** (Integer): Read the file up to this page.

  - **Read to end of file** (Boolean): Read until the end of the file.

## Inbound Variables

- **Directory Path**

- **File Name**

- **Password**

- **Read text from page**

- **Read text to page**

## Outbound Variables

- **ReadText** (String): The content of the text that is read.

- **Form field data** (JSON): The form field data extracted from the file as key-value pairs.

- **Annotations** (String): The annotations extracted from the file.

## Wizard

The wizard is split into two areas **File Settings** and **Read Mode**.

In the **File Settings**, you specify the path to the folder in which the file is located and the
name of the file.

In the **Read Mode** area, there are various modes available for reading a PDF file:

- With **Read entire file**, the entire text of the document is read.

- With **Read page range**, you can specify a specific range that is to be read. If the option
  **Read to end file** is selected, the PDF is read to the end.

- With **Read text in selected area**, you can read the text from a selected area in the document.

  For this, you must select a PDF file under File Settings. Then click on **Define Area** and the
  PDF is opened in a separate window.

Here you can select the required area using the mouse.

When you have selected the area, close the window with _Save_.

If you have selected an area to be read with one of the various Read Modes, you can use the **Test
button** at the bottom right of the wizard in the action step to display the result.
