setMaxNumberOfPages

fun setMaxNumberOfPages(maxNumberOfPages: Int)

Defines max number of scanned pages. This parameter works only if the “multipage” feature is enabled. Once the number of scanned pages was reached, the Document Scanner will be closed.