#include "ltdoc2.h"

L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2SetRecognitionResultOptions(hDoc, pResOpts)

Sets the recognition result options.


L_HDOC2 hDoc

Handle to the OCR document.


Pointer to a RESULTOPTIONS2 structure that contains the options to set.


Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.


Sets options that will be used in saving recognition results to a file.

These options will be used with the L_Doc2SaveResultsToFile / L_Doc2SaveResultsToFileExt function.

To recognize one or more pages, call the L_Doc2Recognize / L_Doc2RecognizeExt function.

To get settings for specific format, call the L_Doc2GetOutputFormatSettings / L_Doc2GetOutputFormatSettingsExt function, and to update format settings, call the L_Doc2SetOutputFormatSettings / L_Doc2SetOutputFormatSettingsExt function.


This function should be called before calling any of the following functions in order to specify the document format type you wish to get/set its options: L_Doc2GetDocumentWriterOptions / L_Doc2GetDocumentWriterOptionsExt L_Doc2SetDocumentWriterOptions / L_Doc2SetDocumentWriterOptionsExt

Required DLLs and Libraries

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help