#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2GetPreProcessingOptionsExt(hDoc, nDocId, pOptions, uStructSize)

Gets the current engine's pre-processing options.


L_HDOC2 hDoc

Handle to the OCR document. This handle is obtained by calling the L_Doc2StartUp function.

L_INT nDocId

Document ID created by calling L_Doc2CreateDocument.


Pointer to a DOC2PREPROCESSINGOPTIONS structure to be updated with the engine's current pre-processing options.

L_UINT uStructSize

Size in bytes, of the DOC2PREPROCESSINGOPTIONS structure. Use sizeof(DOC2PREPROCESSINGOPTIONS) to retrieve the structure size.


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


To update the engine's pre-processing options, call the L_Doc2SetPreProcessingOptions / L_Doc2SetPreProcessingOptionsExt function.

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