DocumentCaptureTask.language

Property Description

The language of the document.

Use values from the documentCapture.Language enum to set the value of this property. If you don't specify a language, English is used by default. For more information, see the description of the options.language parameter in documentCapture.documentToStructure(options).

Type

string

Module

N/task Module

Parent Object

task.DocumentCaptureTask

Sibling Object Members

DocumentCaptureTask Object Members

Since

2025.2

Errors

Error Code

Thrown If

INVALID_LANGUAGE

The value of this property is not included in the documentCapture.Language enum.

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/task Module Script Samples.

            // Add additional code
...
var myDocCaptureTask = task.create({
    taskType: task.TaskType.DOCUMENT_CAPTURE
});
myDocCaptureTask.language = documentCapture.Language.CES;
...
// Add additional code 

          

General Notices