GetLiveText

Returns the text found in the image of the specified container field using the text-recognition algorithm.

Format 

GetLiveText ( container ; language )

Parameters 

container - any expression that returns container data.

language - the language code of the text-recognition algorithm to use (see below).

Data type returned 

text

Originated in version 

19.5.1

Description 

Use this function to capture the text found in the image in the specified container field using the text-recognition algorithm, starting with iOS 15.0, iPadOS 15.0, and macOS 12.0.

For language, use one of the following language codes to specify the text-recognition algorithm:

  • "en-US"

  • "fr-FR"

  • "it-IT"

  • "de-DE"

  • "es-ES"

  • "pt-BR"

  • "zh-Hans"

  • "ja-JP"

  • "ko-KR"

  • "uk-UA"

Note  The language codes "ja-JP", "ko-KR", and "uk-UA" are only available on iOS, iPadOS and macOS, starting with iOS 16, iPadOS 16 and macOS 13.

Example 1 

In the InvoiceText field, stores the text extracted from the image in the InvoiceContainer field using the en-US text-recognition algorithm.

Copy
Set Field [Invoices::InvoiceText ; GetLiveText ( Invoices::InvoiceContainer ; "en-US" )]