RemovePage Example for C++ 5.0 and later
void CSample_COMDlg::OnButton7()
{
pRasterDoc->CleanupPages(TRUE);
int nRet = pRasterDoc->RemovePage (0);
if(nRet == 0)
AfxMessageBox(TEXT("The engine deleted the specified page from the OCR document."));
else
AfxMessageBox(TEXT("The engine could not delete the specified page from the OCR document."));
}