#include "BIDIB.H"
void CALLBACK SetAcquirePages(int iPages, BOOL bMultiPage)
Description
This function specifies the number of pages to scan. If bMultiPage is FALSE, the filenames will be indexed. For example the parameterAcquire function is test.bmp the scanned images will be test00001.bmp, test00002.bmp and so on. If bMultiPage is TRUE and the image file format is multipage TIFF file, the scanner will generate the specified multipage TIFF file. If the image file format is not multipage TIFF the image file will be overwritten. You can use this function for specifying batch scanning. If the feeder has automatic document feeder set CAP_FEEDERENABLED and CAP_AUTOFEEDto TRUE for scanning from feeder. Use the SetAcquirePages function to set the number of pages to scan. When you call the Acquire function, the scanner will scan the specified pages from the ADF. If the GetAcquirePages returns 0 the Acquire function will scan all pages from the feeder.
Parameters
int iPages Number of page to be scanned.
BOOL bMultiPage Single page or multipage scanning.
TRUE = Multi page.
FALSE = Single page.
Return values
None.
Requirements
Header : Declared in BiTwain.h; include BiTwain.h
Library : Use BiTwain.lib.
DLLs : BiTwain.dll.