This demo shows how to control the number of pages scanned per scan operation by setting the maximum number of images the web application will accept for each scan. Note that (1) this feature must be supported by the scanner to be successfully implemented, and (2) this demo only supports TWAIN, WIA, and SANE drivers.
Allowed values are between -1 and 215 inclusive, where -1 indicates no limit.