Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS OCR C DLL Help

L_DocSetHandPrintOptions

Show in webframe

#include "ltdoc.h"

L_LTDOC_API L_INT 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

 L_INT DocSetHandPrintOptionsExample(L_HDOC hDoc)
{
   L_INT nRet;
   HANDPRINTOPTIONS HandOpts;

   ZeroMemory(&HandOpts, sizeof(HANDPRINTOPTIONS));

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

   HandOpts.bSpace = FALSE;
   nRet = L_DocSetHandPrintOptions(hDoc, &HandOpts);
   if(nRet != SUCCESS)
      return nRet;
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.