Skip to main content

Read Text

Description

This activity reads the document selected in the word context and returns the text.

note

You can only use this activity inside Word Context.

Design Time Configuration

At design time, you can configure the following properties:

  • Page(s) to read – Use the options below to read text within one or more pages.

    OptionDescription
    AllChoose this option to read the text on all the page(s).
    SingleChoose this option to read the text on one page.
    RangeChoose this option to read the text on the page(s) range.
  • From page—When Page(s) to read is configured to Range, designate the initial page to initiate the text's reading.

  • To page—When Page(s) to read is set to Range, indicate the concluding page number within the range for the text's reading. –Page number–If Page (s) to read is set to Single, define the specific page number for reading the text.

  • Read page by - This option becomes accessible exclusively when Single is chosen under Page(s) to read. It allows for the specification of the page index or number to facilitate the selection of subsequent options.

    OptionDescription
    Page IndexSelect this selection to access the page via its index.
    Page NumberChoose this option to access the page using its number.
note

The page index denotes the fixed physical page number, whereas the page number is user-defined and customizable. Users can define it on any page within the document's Header or Footer.

  • Text format - Whether to read the text in plain text, HTML, or RTF format.
  • Result - Returns the text read from the document.

Properties

Misc

  • DisplayName – Add a display name to your activity.
  • Private – By default, activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the activity throws an error. If True, the activity continues without throwing any exceptions. If False, the activity throws an exception. The default value is False.
note

It does not catch an error if this activity is present inside the Try-Catch block and this property's value is True.

Example

Download Example

Replace Picture