L_Doc2GetCharLangsOptions

#include "ltdoc2.h"

L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2GetCharLangsOptions(hDoc, pCharOpts, uStructSize)

L_HDOC2 hDoc;

/* handle to the OCR document */

pCHAROPTIONS2 pCharOpts;

/* pointer to a CHAROPTIONS2 structure */

L_UINT uStructSize;

/* size of the structure */

Gets the current character options for the currently activated languages.

Parameter

Description

hDoc

Handle to the OCR document.

pCharOpts

Pointer to a CHAROPTIONS2 structure to be updated.

uStructSize

Size in bytes, of the structure pointed to by pCharOpts, use sizeof(CHAROPTIONS2) to calculate this value.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Gets the current character options for the currently activated languages in the OCR document engine.

To activate recognized languages, call the L_Doc2SelectLanguages function.

To update the character options for the current activated languages, call the L_Doc2SetCharLangsOptions function.

Required DLLs and Libraries

LTDOC2

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_Doc2SelectLanguages, L_Doc2GetSelectedLanguages, L_Doc2FreeLanguages, L_Doc2SetCharLangsOptions, L_Doc2GetDefaultSpellLanguages

Topics:

OCR Functions: Languages

 

Working with Languages

Example

For an exmple, refer to L_Doc2SelectLanguages.