Convert to Text

The Convert to Text block simplifies document processing and data extraction. It takes different file types and turns them into plain text using powerful online tools, making it easier to automate tasks and integrate the text into various workflows.

Fully expanded, the Convert to Text block shows the following properties:

The Block Header ("Convert to text")

The green input connector in the header is used to trigger the block to start executing.

The green output connector in the header triggers when the file type has been successfully converted to text.

The title of the block “Convert to text” can be changed by double-clicking on it and typing in a new title.

Source Type

Once you drag the file into the block, the block will automatically recognize the file type. 

A user can choose any of the below options as a source type:

  • Data File: File for upload will be saved inside of Leapwork.
  • Local Path: File for upload will be referred to from a specified path.

Select file to convert

This field allows you to drop the file that is to be converted.

Note: The system allows only files up to 25 MB.

Output

This property contains the output result of the block, which will be a plain text once the conversion process is complete.

The blue output connector triggers when the file type has been successfully converted to text and can be used as the source element in other building blocks.

Not Converted

This green output connector triggers if the file type is not converted within the time specified in the timeout field.

This connector can be used to branch the execution of the flow based on whether the file type is converted or not.

Default Timeout

If the 'Default Timeout' property checkbox is not selected, then the timeout value is 10 seconds. If the 'Default Timeout' property checkbox is selected, then the 'Default timeout' value selected in the flow settings will be applicable.

Timeout

The maximum time spent converting the file type before giving up and triggering the “Not converted” connector.

Note: All cases have a “global timeout” that can be configured in the “Settings” panel. This is unrelated to the timeout of a single building block. However, a running case will automatically be cancelled if it runs for longer than the global timeout.

 

Created 2024.02.08