L_DocSetHandPrintOptions

#include "ltdoc.h"

L_INT EXT_FUNCTION L_DocSetHandPrintOptions(hDoc, pHandOpts)

L_HDOC hDoc;

/* handle to the OCR document */

pHANDPRINTOPTIONS pHandOpts;

/* pointer to a HANDPRINTOPTIONS structure */

Sets the hand print options to be used in the next recognition process.

Parameter

Description

hDoc

Handle to the OCR document.

pHandOpts

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

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Sets the Hand print options to be used in the next recognition process.

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

To get the current hand print options, call L_DocGetHandPrintOptions.

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_DocSetMOROptions, L_DocGetMOROptions, L_DocGetHandPrintOptions, L_DocSetOMROptions, L_DocGetOMROptions

Topics:

OCR Functions: Recognition

 

Recognizing Document Pages

Example

void TestHANDPrintOptions(L_HDOC hDoc)
{
   HANDPRINTOPTIONS HandOpts;

   memset(&HandOpts, 0, sizeof(HANDPRINTOPTIONS));

   L_DocGetHandPrintOptions (hDoc, &HandOpts, sizeof(HANDPRINTOPTIONS));
   if (HandOpts.style != HAND_STYLE_US)
      HandOpts.style = HAND_STYLE_US;

   HandOpts.bSpace = FALSE;
   L_DocSetHandPrintOptions(hDoc, &HandOpts);
}