L_DocSetMOROptions

#include "ltdoc.h"

L_INT EXT_FUNCTION L_DocSetMOROptions(hDoc, pMOROpts)

L_HDOC hDoc;

/* handle to the OCR document */

pMOROPTIONS pMOROpts;

/* pointer to a MOROPTIONS structure */

Sets MOR recognition options in the OCR document engine.

Parameter

Description

hDoc

Handle to the OCR document.

pMOROpts

Pointer to a MOROPTIONS structure which contains the options to be set.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Sets MOR options to be used in the next recognition process.

This function will be used only when the recognition module is RECOGMODULE_MULTI_LINGUAL_OMNIFONT.

To recognize a page, 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_DocSetRecognizeModuleTradeOff, L_DocGetRecognizeModuleTradeOff, L_DocGetMOROptions, L_DocSetHandPrintOptions, L_DocGetHandPrintOptions, L_DocSetOMROptions, L_DocGetOMROptions

Topics:

OCR Functions: Recognition

 

Recognizing Document Pages

Example

void TestMOROptions(L_HDOC hDoc)
{
   MOROPTIONS MOROpts;

   memset(&MOROpts, 0, sizeof(MOROPTIONS));

   L_DocGetMOROptions(hDoc, &MOROpts, sizeof(MOROPTIONS));
   if (!MOROpts.bEnableFax)
      MOROpts.bEnableFax = TRUE;

   L_DocSetMOROptions(hDoc, &MOROpts);
}