L_Doc2GetUserDictionarySection

✎ NOTE

User words and dictionaries are no longer supported in the LEADTOOLS OCR Module - OmniPage Engine.

#include "ltdoc2.h"

L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2GetUserDictionarySection(hDoc, pSection, nSize, bFirst)

Gets User dictionary sections.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_CHAR * pSection

Pointer to a buffer to be updated with the name of the section, specified in the bFirst parameter, in the User dictionary.

L_INT nSize

Size in bytes, of the buffer in bytes.

L_BOOL bFirst

Flag specifying which section to get. Possible values are:

Value Meaning
TRUE Get the first section in the User dictionary.
FALSE Gets the next section in the User dictionary.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.