#include "ltdoc2.h"
L_LTDOC2_API L_INT L_Doc2SetCharLangsOptionsExt(hDoc, nDocId, pCharOpts)
Sets character options for the currently activated languages in the OCR document engine.
Handle to the OCR document.
Document ID created by calling L_Doc2CreateDocument.
Pointer to a CHAROPTIONS2 structure containing the options to be set in the OCR document engine.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To get the currently supported languages, call the L_Doc2GetSupportedLanguages function.
To activate your recognized languages, call the L_Doc2SelectLanguages / L_Doc2SelectLanguagesExt function.
To get the character options for the current activated languages, call the L_Doc2GetSelectedLanguages / L_Doc2GetSelectedLanguagesExt function.
Required DLLs and Libraries
For an example, refer to L_Doc2SelectLanguagesExt.