L_DocGetRecognitionResultOptions

#include "ltdoc.h"

L_LTDOC_API L_INT L_DocGetRecognitionResultOptions(hDoc, pResOpts, uStructSize)

L_HDOC hDoc;

/* handle to the OCR document */

pRESULTOPTIONS pResOpts;

/* pointer to RESULTOPTIONS */

L_UINT uStructSize;

/* size of the structure */

Gets current used options to save the recognition results.

Parameter

Description

hDoc

Handle to the OCR document.

pResOpts

Pointer to a RESULTOPTIONS structure to be updated.

uStructSize

Specifies the size of the structure pointed to by pResOpts, use sizeof(RESULTOPTIONS) to calculate this value.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Gets the current options for saving recognition results to a file.

To update the options for saving the recognition results, call L_DocGetRecognitionResultOptions.

To recognize one or more pages, call L_DocRecognize.

Required DLLs and Libraries

LTDOC

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_DocGetStatus, L_DocRecognize, L_DocSaveResultsToMemory, L_DocFreeMemoryResults, L_DocSetRecognitionResultOptions, L_DocEnumOutputFileFormats, L_DocGetTextFormatInfo, L_DocSaveResultsToFile, L_DocSetSpecialChar, L_DocGetSpecialChar, L_DocGetRecognizedCharacters, L_DocSetRecognizedCharacters, L_DocFreeRecognizedCharacters

Topics:

OCR Functions: Recognition

 

Recognizing Document Pages

 

Output Converter Formatting Properties

Example

For an example, refer to L_DocSaveResultsToFile.