User words and dictionaries are no longer supported in the LEADTOOLS OCR Module - OmniPage Engine.
Gets User dictionary sections.
Handle to the OCR document.
Pointer to a buffer to be updated with the name of the section, specified in the bFirst parameter, in the User dictionary.
Size in bytes, of the buffer in bytes.
Flag specifying which section to get. Possible values are:
|TRUE||Get the first section in the User dictionary.|
|FALSE||Gets the next section in the User dictionary.|
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
Gets a list of User dictionary sections.
The lengths of each section name can never exceed the DOC2_MAX_SECTION_NAME_LENGTH value (including the terminating zero).
Call this function multiple times to get each section in a User dictionary. The first time you call it, pass TRUE for bFirst. In each subsequent call, pass FALSE for bFirst, and LEADTOOLS will get the next section from the specified dictionary. To re-start the process, call this function again, and pass TRUE for bFirst.
Required DLLs and Libraries
For an example, refer to L_Doc2GetUserDictionary.