ImageGear Professional DLL v17.1 for Windows Accusoft
LPFNIG_TWAIN_AFTER_DOC
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > TWAIN Component API Reference > TWAIN Component Callback Functions Reference > LPFNIG_TWAIN_AFTER_DOC

Glossary Item Box

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:

nPageCount The number of pages that were scanned into one document.
nADFLoaded

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 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.

©2012. Accusoft Corporation. All Rights Reserved.