# Read PDF With OCR

> `UiPath.PDF.Activities.ReadPDFWithOCR`

`UiPath.PDF.Activities.ReadPDFWithOCR`

## Description

Reads all characters from a specified PDF file and stores it in a string variable by using OCR technology.

## Project compatibility

**Windows-Legacy | Windows**

## Configuration

#### Designer panel

* **FileName** - The path of the PDF file to be read. Only String variables and strings are supported.

#### Properties panel

**Common**
* **DisplayName** - The display name of the activity.

**File**
* **FileName** - The path of the PDF file to be read. Only String variables and strings are supported.
* **Password** - The password of the PDF file, if necessary. Only String variables and strings are supported.

**Input**
* **DegreeOfParalelism** - Specifies how many, if any, pages to be analyzed in parallel. The `-1` value uses the maximum number of logical processors on the machine, while specifying a positive value uses that number of logical processors. By default, this property is set to `-1`.
* **ImageDpi** - The DPI used for the OCR process. By default, this field is set to `150`.
* **Range** - The range of pages that you want to read. If the range isn't specified, the whole file is read. You can specify a single page (e.g. "7"), a range of pages (e.g. "7-12"), or a complex range, (e.g. "2-5, 7, 15-End" or "All"). Only string variables and strings are supported. The default value is "All".

**Misc**
* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

**Output**
* **Text** - The extracted string. This field supports only `String` variables.

## Example of using the Read PDF With OCR activity

Visit [Read PDF files](https://docs.uipath.com/activities/other/latest/document-understanding/read-pdf-files) to check how the **Read PDF With OCR** activity is used in an example that incorporates multiple activities.
