Use the Capture text by URL action to extract text from an image or PDF file accessible through a URL. You can filter the extracted text and assign it to a string variable.
Procedure
Follow these steps to use the Capture text by URL
action:
- In the Actions palette, double-click or drag the Capture text by URL action from the OCR package.
-
Specify whether the action reads text from an image URL or a PDF
URL.
- Image URL: Use this tab to extract text from an image
accessible through a URL. This tab is selected by default.Note: A URL of an image on a shared drive or an FTP server is not supported.
- PDF URL: Use this tab to extract text from a PDF file
accessible through a URL.
- If the PDF file is password-protected, enter the password in the
PDF password (optional) field. Select the input
type for the password:
- Credential: Uses a stored credential from Credential Vault.
- Variable: Uses a variable that contains the password.
- Insecure string: Enters the password as plain text. Not recommended for sensitive files.
- In the Page number(s) field, specify the page or
pages to extract text from.
- Enter a single page number (for example,
1). - Enter a page range using a colon separator (for example,
2:4). - The maximum number of pages per extraction is 10.
Note: Text from all specified pages is combined in order and stored in the output variable. - Enter a single page number (for example,
- If the PDF file is password-protected, enter the password in the
PDF password (optional) field. Select the input
type for the password:
- Image URL: Use this tab to extract text from an image
accessible through a URL. This tab is selected by default.
-
Select the Filter the captured text check box to extract a
specific substring from the captured text.
In the After field, enter the text that precedes your target string. In the Before field, enter the text that follows your target string. For example, if the extracted text is Name: ABC Inc. Location:, and you want to retrieve ABC Inc., you must specify Name: in the After field and Location: in the Before field.
- Select the Trim the captured text check box to remove leading and trailing spaces from the extracted text.
-
Select the Load Profile check box and specify the location
of the ABBYY profile file.
Note: ABBYY FineReader 12.5.15.7 is installed along with Automation 360 and does not require any additional setup.
- Control Room file: Uses a file that is available on the Control Room.
- Desktop file: Uses a file that is available on a device.
- Variable: Uses a file variable to specify the file location.
- In the Assign output to variable list, select a string variable.
- Click Save.