ImageGear for C and C++ on Windows v20.3 - Updated
LPFNIG_TWAIN_AFTER_DOC
API Reference Guide > TWAIN Component API Reference > TWAIN Component Callback Functions Reference > LPFNIG_TWAIN_AFTER_DOC

This callback, if registered, will be called by ImageGear after all the pages of a document have been scanned, processed and/or saved.

Declaration:

 
Copy Code
typedef LONG (LPACCUAPI LPFNIG_TWAIN_AFTER_DOC)(
        LONG nPageCount,
        LONG nADFLoaded,
        LPVOID lpData
);

Arguments:

Name Type Description
nPageCount LONG The number of pages that were scanned into one document.
nADFLoaded LONG

Returns the status of the paper supply in the ADF (if an ADF is being used). The following values can be returned:

  • 0 - ADF is empty.
  • 1 - ADF still contains paper.
  • -1 - TWAIN does not know whether or not the ADF contains paper (i.e., an error occurred).
lpData LPVOID A far pointer to private data, as specified in your call to IG_TWAIN_CB_register() function.

Return Value:

Set the return value to 0 to return control to ImageGear.

Supported Raster Image Formats:

Indexed RGB – 1, 4, 8 bpp;
RGB – 24 bpp;
CMYK – 32 bpp;
Gray – 12, 16 bpp.

Remarks:

This callback allows you to find out how many pages have been scanned so far, and the status of the paper availability in the ADF.

Is this page helpful?
Yes No
Thanks for your feedback.