CleanupPages method (ILEADRasterDocument)

RemovePage Example for Visual Basic

RemovePage Example for C++ 5.0 and later

 

Syntax

short CleanupPages (BOOL bAutoCleanup);

Overview

Refer to Working with Pages

Remarks

Enables or disables automatic clean-up of temporary files.

When this method is called and TRUE is passed to the bAutoCleanup parameter, calling the RemovePage method will delete the specified page from the OCR document currently loaded in the engine. It will also delete its corresponding temporary file.

When this method is called and FALSE is passed to the bAutoCleanup parameter, calling the RemovePage method will delete the specified page from the OCR document currently loaded in the engine, but will NOT delete its corresponding temporary file. In this case, the corresponding temporary file will be deleted either when re-calling this method and passing TRUE to the bAutoCleanup parameter; or shutting down the OCR engine by calling the ShutDown method.

See Also

Elements:

AddPage method, UpdatePage method, RemovePage method, ExportPage method, AutoOrientPage method, PageCount property, ShutDown method

Topics:

Quick Reference OCR: Working with Pages