L_Doc2ExportPageExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2ExportPageExt(hDoc, nDocId, pBitmap, uStructSize, nPageIndex)

Exports the specified page into the specified bitmap handle.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_INT nDocId

IDocument ID created by calling L_Doc2CreateDocument.

pBITMAPHANDLE pBitmap

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

L_UINT uStructSize

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

L_INT nPageIndex

Zero-based page index of the page to be exported.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

Call L_FreeBitmap to free pBitmap when it is no longer needed.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT Doc2ExportPageExampleExt(L_HDOC2 hDoc, L_INT nDocId, L_INT nPageIndex, pBITMAPHANDLE pBitmap) 
{ 
   L_INT nRet; 
    
   nRet = L_Doc2ExportPageExt(hDoc, nDocId, 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; 
} 
Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help