The ExportPages(Int32,Int32) Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
- firstPageIndex
- The zero-based index of the first page to export.
- lastPageIndex
- The zero-based index of the last page to export. A value of -1 means export up to and including the last page in the OCR document.
Visual Basic (Declaration) | |
---|---|
Overloads Function ExportPages( _ ByVal firstPageIndex As Integer, _ ByVal lastPageIndex As Integer _ ) As RasterImage |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As IOcrPageCollection Dim firstPageIndex As Integer Dim lastPageIndex As Integer Dim value As RasterImage value = instance.ExportPages(firstPageIndex, lastPageIndex) |
C# | |
---|---|
RasterImage ExportPages( int firstPageIndex, int lastPageIndex ) |
C++/CLI | |
---|---|
RasterImage^ ExportPages( int firstPageIndex, int lastPageIndex ) |
Parameters
- firstPageIndex
- The zero-based index of the first page to export.
- lastPageIndex
- The zero-based index of the last page to export. A value of -1 means export up to and including the last page in the OCR document.
Return Value
A Leadtools.RasterImage object containing a copy of the image data of the specified page or pages.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 objects inside the OCR document. The returned Leadtools.RasterImage object will need to be disposed.
To export a single page to a Leadtools.RasterImage object, use ExportPage(int pageIndex).
A short-cut to export all the pages in the OCR document to a multi-page Leadtools.RasterImage object is ExportPages(1, -1)
.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7