Changes the index of a page in the document.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_document_page_move( HIG_REC_DOCUMENT hDocument, AT_INT nPageFrom, AT_INT nPageTo ); |
Name | Type | Description |
---|---|---|
hDocument | HIG_REC_DOCUMENT | Document handle. |
nPageFrom | AT_INT | Zero-based starting page index. |
nPageTo | AT_INT | Zero-based destination page index. |
See IG_REC_image_import.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; HIG_REC_DOCUMENT hRecDocument = 0; AT_INT iPageCount = 0; ErrCount += IG_load_file("Image.tif", &higImage); ErrCount += IG_REC_image_import(higImage, &higRecImage); ErrCount += IG_REC_image_recognize(higRecImage); ErrCount += IG_REC_document_open("recognition_data.bin", &hRecDocument); //... ErrCount += IG_REC_document_page_insert(hRecDocument, higRecImage, -1); ErrCount += IG_REC_document_pagecount_get(hRecDocument, &iPageCount); if(iPageCount > 1) ErrCount += IG_REC_document_page_move(hRecDocument, iPageCount-1, 0); ErrCount += IG_REC_document_close(hRecDocument); ErrCount += IG_image_delete(higImage); |