LEADTOOLS OCR C DLL Help > Function References > OCR Professional > L_Doc2SetCharLangsOptions |
#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2SetCharLangsOptions(hDoc, pCharOpts)
L_HDOC2 hDoc; |
/* handle to the OCR document */ |
pCHAROPTIONS2 pCharOpts; |
/* pointer to a CHAROPTIONS2 structure */ |
Sets character options for the activated languages in the OCR document engine.
Parameter |
Description |
hDoc |
Handle to the OCR document. |
pCharOpts |
Pointer to a CHAROPTIONS2 structure, which contains the options to be set in the OCR document engine. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Sets character options for the current activated languages in the OCR document engine.
To get the currently supported languages, call the L_Doc2GetSupportedLanguages function.
To activate your recognized languages, call the L_Doc2SelectLanguages function.
To get the character options for the current activated languages, call the L_Doc2GetSelectedLanguages 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
Example
For an exmple, refer to L_Doc2SelectLanguages.