Inserts the page into the document.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_REC_document_page_insert( HIG_REC_DOCUMENT hDocument, HIG_REC_IMAGE hPage, AT_INT nPageIndex ); |
Name | Type | Description |
---|---|---|
hDocument | HIG_REC_DOCUMENT | Document handle. |
hPage | HIG_REC_IMAGE | Page to be inserted. |
nPageIndex | AT_INT | Zero-based position in the document where the new page is inserted. -1 means append the page. |
See IG_REC_image_import.
After inserting the page, it becomes invalid. It can neither be accessed nor deleted.
Copy Code
|
|
---|---|
AT_ERRCOUNT ErrCount = 0; HIG_REC_IMAGE higRecImage = 0; HIGEAR higImage = 0; HIG_REC_DOCUMENT hRecDocument = 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_save(hRecDocument, "recognition_data.new"); ErrCount += IG_REC_document_close(hRecDocument); ErrCount += IG_image_delete(higImage); |