Leadtools.Document Deprecated as of v16. Refer to: Leadtools.Forms.Ocr | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CleanupPages Method
See Also 
Leadtools.Document Namespace > RasterDocumentEngine Class : CleanupPages Method



autoCleanup
Enables or disables automatic cleanup of pages. true: (Default) Cleanup is done automatically when a page a removed. Also will clean up any remaining images from a previous call with autoCleanup set to false. false: No cleanup is done until the function is called again with autoCleanup set to true.
autoCleanup
Enables or disables automatic cleanup of pages. true: (Default) Cleanup is done automatically when a page a removed. Also will clean up any remaining images from a previous call with autoCleanup set to false. false: No cleanup is done until the function is called again with autoCleanup set to true.
Enables or disables automatic cleanup of pages.

Syntax

Visual Basic (Declaration) 
Public Sub CleanupPages( _
   ByVal autoCleanup As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim autoCleanup As Boolean
 
instance.CleanupPages(autoCleanup)
C# 
public void CleanupPages( 
   bool autoCleanup
)
C++/CLI 
public:
void CleanupPages( 
   bool autoCleanup
) 

Parameters

autoCleanup
Enables or disables automatic cleanup of pages. true: (Default) Cleanup is done automatically when a page a removed. Also will clean up any remaining images from a previous call with autoCleanup set to false. false: No cleanup is done until the function is called again with autoCleanup set to true.

Example

Refer to RemovePage example.

Remarks

If the function is called with autoCleanup set to true, it will check for any images left over from previously removed pages and will delete them. This can happen if the function was previously called with autoCleanup set to false. When this function is called with autoCleanup set to true, the RemovePage method will delete the specified page from engine and delete its corresponding temporary file. When this function is called with autoCleanup set to false, the RemovePage method will delete the specified page from engine and will not delete its corresponding temporary file. The corresponding temporary files are deleted when this function is called with autoCleanup set to true and when the OCR engine is shut down. When you shut down the OCR engine, pages will be removed and cleanup will take place.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

The Leadtools.Document namespace is deprecated and no longer supported as of LEADTOOLS v16. For v16 and later, please refer to: Leadtools.Forms.Ocr. This documentation is retained for v15 and earlier informational use only.