---
schema_version: "1"
id: 001ea88f27f4f23d914211ec77afcd1e746a9609b8de9a75cf1709f055d140e3
title: OCR With AWS
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/6.6/toolbox-aws-operations-ocr-with-aws.md
canonical_url: https://docs.mulesoft.com/rpa-builder/6.6/toolbox-aws-operations-ocr-with-aws
source_site: docs.mulesoft.com
content_type: documentation
content_hash: cc50b55799319e938cb254d8bbca584d813f49981187ce7bd813f433aa0eb406
description: MuleSoft Documentation Site
release: "6.6"
latest: false
---
---
product: RPA Builder
version: 6.6
---

# OCR With AWS

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

The OCR with AWS action step enables you to recognize the text in a document by sending a local file
to the AWS Textract service, which returns the extracted values.

This action step processes the document in a synchronous fashion (Amazon does not store the
document) and automatically converts PDF files to PNG images. You can adjust the fidelity of the
conversion in the properties grid.

## Inbound Variables

- **Directory Path**

- **File Name**

- **Password**

- **Read text from page**

- **Read text to page**

- **AWS Credentials**

  Or, if **Use custom settings** is activated in the wizard:

  - **Client Id**

  - **Client Secret**

  - **Session Token**

  - **Use Session Token**

  - **Region Endpoint**

- **Json Path**

## Outbound Variables

- **Raw Text**

  The extracted raw text of the document.

- **Normalized Json**

  The parsed result based on the normalized result and defined Json path.

- **Raw Json**

  The complete AWS response.

## Wizard

![50%](/mulesoft/current/en-us/rpa-builder/6.6/_images/ocr-with-aws-wizard.png)

- **Authentication Settings**

  The AWS credentials to use for authentication

  - **Pin credentials**

    Use this option to reference an existing **Credentials for AWS** configuration.

  - **Use custom settings**

    Use this option to manually specify an AWS **Cliend ID**, **Client Secret**, **Region
    Endpoint**, and **Session Token** for this action step.

- **Response settings**

  - **JsonPath Expression**

    The Json path to the property of the response object.

- **File Settings**

  - **Directory path**

    The path to the directory where the file is located.

  - **File name**

    The name of the file to analyze. Supported file types: PDF, JPEG, and PNG.

- **PDF Settings**

  These settings show when the selected file is a PDF.

  - **Automatically detect the best quality for conversion**

    Disable this option to manually adjust the image quality.

  - **Image Quality**

    Specifies the quality of the image created from the PDF. The value ranges from `10` (lowest
    quality) to `100` (highest quality).

    This property is not available in the Wizard.

  - **PDF file is password protected**

    Specifies if the selected PDF file is password protected. When selected, specify the password to
    open the file in the **Password to open PDF file** filed.

  - **Read entire file**

    Instructs the service to read the entire file.

  - **Read page range**

    Instructs the service to read the selected range of pages.

    - **From page**

      Specify from which page the service starts reading the file.

    - **To page**

      Specifies until which page the service reads the file.

    - **Read to end of file**

      Instructs the service to continue reading until the end of the file.

## See Also

- [Credentials for AWS](https://docs.mulesoft.com/rpa-builder/6.6/toolbox-aws-operations-credentials-for-aws)

- [Amazon Textract: Detecting Text](https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html)

- [Building JSONPath Expressions](https://docs.mulesoft.com/rpa-builder/6.6/building-jsonpath-expressions)
