#include "ltdoc2.h"
L_LTDOC2_API L_INT L_Doc2ExportPageExt(hDoc, nDocId, pBitmap, uStructSize, nPageIndex)
Exports the specified page into the specified bitmap handle.
Handle to the OCR document.
IDocument ID created by calling L_Doc2CreateDocument.
Pointer to the bitmap handle that references the bitmap to be updated with an image of the exported OCR page.
Size in bytes, of the structure pointed to by pBitmap. Use sizeof(BITMAPHANDLE) to calculate this value.
Zero-based page index of the page to be exported.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Call L_FreeBitmap to free pBitmap when it is no longer needed.
Required DLLs and Libraries
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;
}