L_OcrDocument_Save

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrDocument_Save(document, fileName, format, callback, userData)

Converts the cumulated recognition result stored in the pages of this OCR document to the final output document and stores it to a disk file.

Parameters

L_OcrDocument document

Handle to the OCR document.

const L_TCHAR* fileName

The name of the file to save the final output document to.

DOCWRTFORMAT format

The document format to use. If this parameter is DocumentFormat.User, then the document saved using the native engine format set in IOcrDocumentManager.EngineFormat if the engine used supports native formats, otherwise an exception will be thrown. Note that saving the OCR results using the native engine formats may produce more accurate results in table and cell positions since the engine has access to extra data that is saved internally.

L_OcrProgressCallback callback

Optional callback to show operation progress.

L_VOID* userData

Optional user data to pass to the callback function.

Returns

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

Comments

Converts the cumulated recognition result stored in the pages of this OCR document to the final output document and stores it to a disk file.

Required DLLs and Libraries

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

LEADTOOLS OCR Module - LEAD Engine C API Help