#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.
Handle to the OCR document.
The name of the file to save the final output document to.
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.
Optional callback to show operation progress.
Optional user data to pass to the callback function.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
For an example, refer to L_OcrDocumentManager_CreateDocument