Unlocking Special LEAD OCR Features

LEAD OCR offers a variety of features, such as OCR Engine, PDF, OMR, and ICR, which are all locked.

Unlocking the OCR Engine

Before start using the OCR toolkit, the OCR engine must be unlocked by calling L_UnlockSupport function with passing L_SUPPORT_OCR to uType parameter and valid key to pKey parameter. If it is locked, all OCR functions will return ERROR_DOC_LOCKED.

Unlocking the PDF Feature

Note:

The OCR engine must be unlocked first.

To unlock the PDF feature, call the L_UnlockSupport function with passing L_SUPPORT_OCR_PDF_OUTPUT to uType parameter and valid key to pKey parameter. If you are using one of the following output formats with locked PDF feature, ERROR_DOC_OUTPUT_PDF_LOCKED will be returned:

DOC_PDF

DOC_PDF_IMAGE_SUBSTITUTES

DOC_PDF_IMAGE_ON_TEXT

DOC_PDF_IMAGEONLY

DOC_PDF_EDITED

DOC_REC_PDF_IMAGE_ON_TEXT

Unlocking the OMR Feature

Note:

The OCR engine must be unlocked first.

To unlock the OMR feature, call the L_UnlockSupport function with passing L_SUPPORT_OMR to uType parameter and valid key to pKey parameter. If you are using one of the following with locked OMR feature, ERROR_DOC_OMR_LOCKED will be returned:

L_DocSetOMROptions

L_DocGetOMROptions

RECOGMODULE_OMR flag

FILL_OMR flag

Unlocking the ICR Feature

Note:

The OCR engine must be unlocked first.

To unlock the ICR feature, call the L_UnlockSupport function with passing L_SUPPORT_ICR to uType parameter and valid key to pKey parameter. If you are using one of the following with locked ICR feature, ERROR_DOC_ICR_LOCKED will be returned:

L_DocSetHandPrintOptions

L_DocGetHandPrintOptions

FILL_HANDPRINT flag

RECOGMODULE_HAND_PRINTED_NUMERAL flag

RECOGMODULE_RER_PRINTED flag

See Also

Unlocking Special LEAD Features