Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS OCR C DLL Help

L_Doc2ExportPage

Show in webframe

#include "ltdoc2.h"

L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2ExportPage(hDoc, pBitmap, uStructSize, nPageIndex)

L_HDOC2 hDoc;

/* handle to the OCR document */

pBITMAPHANDLE pBitmap;

/* pointer to the bitmap handle */

L_UINT uStructSize;

/* size of the structure */

L_INT nPageIndex;

/* page index */

Exports the specified page into the specified bitmap handle.

Parameter

Description

hDoc

Handle to the OCR document.

pBitmap

Pointer to the bitmap handle that references the bitmap to be updated with an image of the exported OCR page.

uStructSize

Size in bytes, of the structure pointed to by pBitmap. Use sizeof( BITMAPHANDLE ) to calculate this value.

nPageIndex

Index of the page to be exported. This is a zero-based index.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Use the L_FreeBitmap function to free pBitmap when it is no longer needed.

Required DLLs and Libraries

LTDOC2

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_Doc2AddPage, L_Doc2GetPageCount, L_Doc2UpdatePage, L_Doc2RemovePage, L_Doc2GetPageInfo, L_Doc2CleanupPages

Topics:

OCR Functions: Pages

 

Working with Pages

Example

L_LTDOC2TEX_API  L_INT Doc2ExportPageExample(L_HDOC2 hDoc,
                                           L_INT nPageIndex,
                                           pBITMAPHANDLE pBitmap)
{
   L_INT nRet;
   
   nRet = L_Doc2ExportPage(hDoc, pBitmap, sizeof(BITMAPHANDLE), nPageIndex);
   if (nRet != SUCCESS)
   {
      MessageBox(NULL, TEXT("An error occurred in L_Doc2ExportPage."), TEXT("Error!"), MB_OK);
      return nRet;
   }
      MessageBox(NULL, TEXT("The specified page is exported."), TEXT("Notice!"), MB_OK);
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.