L_OcrDocument_Save

#include "ltocr.h"

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

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
L_OcrProgressCallback callback; optional callback to show operation progress
L_VOID* userData; optional user data to pass to the callback function

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.

Parameter Description
document Handle to the OCR document.
fileName The name of the file to save the final output document to.
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.
callback Optional callback to show operation progress.
userData Optional user data to pass to the callback function.

Returns

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

LTOCR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
Help Version 20.0.2018.1.19
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS OCR Module - LEAD Engine C API Help