ImageGear for C and C++ on Windows v19.1 - Updated
IG_REC_document_page_delete
API Reference Guide > Recognition Component API Reference > Recognition Component Functions Reference > Formatted Output Functions > IG_REC_document_page_delete

Removes a page from the document.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_document_page_delete(
   HIG_REC_DOCUMENT hDocument,
   AT_INT nPageToDelete
);

Arguments:

Name Type Description
hDocument HIG_REC_DOCUMENT Document handle.
nPageToDelete AT_INT Zero-based index of the page to be removed.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

See IG_REC_image_import.

Example:

 
Copy Code
AT_ERRCOUNT ErrCount = 0;
HIG_REC_DOCUMENT hRecDocument = 0;
ErrCount += IG_REC_document_open("recognition_data.new", &hRecDocument);

//...

ErrCount += IG_REC_document_page_delete(hRecDocument, 0);
ErrCount += IG_REC_document_save(hRecDocument, "recognition_data.bin");
ErrCount += IG_REC_document_close(hRecDocument);

See Also

HIG_REC_DOCUMENT