Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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.
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
)
Managed Extensions for 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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features