LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ExportPage(Int32) Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrPageCollection Interface > ExportPage Method : ExportPage(Int32) Method



pageIndex
The zero-based index of the page to export.

The ExportPage(Int32) Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

pageIndex
The zero-based index of the page to export.
Export the page at the specified index to a Leadtools.RasterImage object.

Syntax

Visual Basic (Declaration) 
Overloads Function ExportPage( _
   ByVal pageIndex As Integer _
) As RasterImage
Visual Basic (Usage)Copy Code
Dim instance As IOcrPageCollection
Dim pageIndex As Integer
Dim value As RasterImage
 
value = instance.ExportPage(pageIndex)
C# 
RasterImage ExportPage( 
   int pageIndex
)
C++/CLI 
RasterImage^ ExportPage( 
   int pageIndex
) 

Parameters

pageIndex
The zero-based index of the page to export.

Return Value

A Leadtools.RasterImage object containing a copy of the image data of the specified page.

Example

This example will add a page to an OCR document before exporting it back and saving it to disk

Remarks

This method copies the image data to the created Leadtools.RasterImage object image. Therefore, after this method returns, there is no relationship between the returned value and the IOcrPage inside the OCR document. The returned Leadtools.RasterImage object will need to be disposed.

To export more than one page to a multi-page Leadtools.RasterImage object, use ExportPages(int firstPageIndex, int lastPageIndex).

This method is identical to calling IOcrPage.GetRasterImage() on the page whose index is at pageIndex.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

ExportPage(Int32) requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features