#include "ltocr.h"
L_LTOCR_API L_INT EXT_FUNCTION L_OcrDocument_Destroy(document)
L_OcrDocument document; | handle to the OCR document to destroy |
Destroys the created L_OcrDocument handle.
Parameter | Description |
---|---|
document | Handle to the OCR document to destroy. |
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Destroys the created L_OcrDocument handle.
In memory-based documents destroying L_OcrDocument handle will free the document pages so you shouldn't call L_OcrPage_Destroy on the added pages since the OCR document owns them.
For information on how to create memory-based or file-based documents or how to load file-based documents from disk, refer to L_OcrDocumentManager_CreateDocument.
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. |
For an example, refer to L_OcrDocumentManager_CreateDocument.