L_OcrDocument_Save

Summary

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.

Syntax

#include "ltocr.h"

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

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

See Also

Functions

Topics

Example

For an example, refer to L_OcrDocumentManager_CreateDocument

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

LEADTOOLS OCR Module - LEAD Engine C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.