Various options that control scanning operations.
Properties:
Name | Type | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
barcodes |
object | This scanning option controls barcode recognition during scanning. The results are available
in the barcodes property on each image delivered to the
To enable barcode recognition, include barcodes as a property of the scanningOptions object, and set it to an object with one or more of the following properties:
Supported symbologies:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
evrsSettings |
string | Settings can be loaded into EVRS for use in post-processing scanned images, by adding the property evrsSettings as a scanning option. The value of this property, if present, must be a string containing a valid XML-style EVRS operation string. This option has effect only when applyVRS is true. If applyVRS is false the evrsSettings string is ignored. This option can be used to set the effective value of any EVRS parameter, overriding any default value or value normally used by WingScan/WebCapture. Any command/operation included in this string will cause EVRS to ignore any competing scanning options, as described in the following table:
Here is an example of setting EVRS options:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
imageAddress |
ImageAddress | Allows to switch image indexing format to "Image Address" mode and set initial image address value. At the moment "Image Address" is supported only by couple scanners in Kodak product line.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
imprintersConfig |
ImprintersConfig | Allows to configure scanner's imprinter devices. Note: This option is not supported by Web Capture Service for macOS. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kofaxVRSEliteProfileName |
string | Specifies the name of VRS Elite profile which is supposed to be used, during scan using VRS. Note: This option is not supported by Web Capture Service for macOS. If the profile name is not defined, default profile is used during scan. If the specified profile does not exist, previously selected profile is used. This option has effect only in case of using VRS for scan. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
scanner |
string | Specifies the name of the scanner to use. Default value: The last scanner selected in the scanner list control. If no scanner has been selected or there is no designated scanner list control, the user's default scanner is used. This option is ignored by |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showScannerUI |
boolean | false | Show (true) or hide (false) the scanner's user interface during scanning. Note: This option is not supported by Web Capture Service for macOS. This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
showScannerUIWithCurrentSettings |
boolean | false | Show (true) or hide (false) the scanner's user interface during scanning.
If this property is used instead of Note: This option is not supported by Web Capture Service for macOS. This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
threshold |
number | -1 | This scanning option specifies the threshold to be used when scanning to B&W (bitonal) images. Note: This option is not supported by Web Capture Service for macOS. The value range is -1 to 255. The threshold value T is applied roughly as follows: A value of -1 means 'let the scanner choose the threshold' Imagine that each pixel of the document is measured as 8-bit grayscale to give a value V, with 0=black and 255=white. In the returned bitonal image, that pixel is returned as white if V > T, and as black if V < T. If V == T, it may be returned as black or as white, depending on the scanner. Notes:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[importEDocs] |
false | indicates whether arbitrary files are available on |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[applyVRS] |
boolean | true | Enable or disable VRS post-processing in general. If you specify applyVRS: false, VRS is not used for any post-processing. If you specify applyVRS: true then the following options are set by default (i.e. if you do not specify them)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[autoRotate] |
boolean | true | Detect the orientation of the text in an image - right-side up, upside-down, sideways - and rotates the image so the text is upright. Default value: true if VRS is enabled (applyVRS). If VRS is disabled, autoRotate is always disabled. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[brightness] |
number | 0 | This scanning option specifies how the brightness of scanned images should be adjusted by the scanner. Note: This option is not supported by Web Capture Service for macOS. Following TWAIN convention, the value range is -1000 to +1000.
Notes:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[contrast] |
number | 0 | This scanning option specifies how the contrast of scanned images should be adjusted by the scanner. Note: This option is not supported by Web Capture Service for macOS. Following TWAIN convention, the value range is -1000 to +1000.
Notes:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[deliverables] |
Deliveralbes | Specifies configurations for pre-generated data that should be prepared for each scanned image right after it's scanned. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[deskew] |
boolean | true | Deskew is scanning jargon for 'straighten' - to rotate the scanned image by a few degrees to correct for the paper being scanned slightly crooked. This is not the same as autoRotate. Default value: true if applyVRS is true, false otherwise. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[despeckle] |
boolean | false | Scanning option indicating whether 'despeckle' filter is applied to the acquired image |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[disableVRSIfInstalledOnWorkstation] |
boolean | false | If this property is true, automatically disable VRS processing if VRS is detected on the client workstation. The idea is that if VRS is detected on the workstation, the user is probably using a VRS-equipped TWAIN driver, so there is no need to apply VRS processing twice to each image. Note: This option is not supported by Web Capture Service for macOS. Default value: false |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[discardBlankPages] |
boolean | false | When this option is true, blank images are detected and discarded during scanning. In duplex scanning, front and back sides of pages are discarded independently.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[dpi] |
number | 200 | Controls the scanning resolution. It stands for dots per inch. It would be very unusual to find a scanner that doesn't support 100, 200 and 300 DPI. 150 DPI is almost as widely supported. Nearly all flatbed scanners can scan anything from 50 DPI to 1200 DPI. The units of this value are always dots per inch, even if the computer, user account or browser are configured for a metric locale. This option is ignored during |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[duplex] |
ScanMode | Simplex | Controls duplex/simplex scanning. All scanners support simplex scanning. Many scanners with an ADF (Automatic Document Feeder) can scan duplex, but many cannot. This option is ignored during |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[feeder] |
FeederType | Any | This option selects between the ADF (Automatic Document Feeder) and the flatbed/glass AKA the platen. This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[holeFill] |
boolean | false | Scanning option indicating whether 'hole fill' filter is applied to the acquired image |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[autoCrop] |
boolean | false | Scanning option indicating whether 'auto crop' filter is applied to the acquired image |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[jpeg] |
object | Jpeg images compression settings. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[quality] |
number | 75 | Jpeg compression quality |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[maxPages] |
number | -1 | Requests that the scanner scan no more than the specified number of pages. It defaults to -1, meaning 'no limit'. Set to 1 to scan a single page. Note: this means physical pages - if scanning in duplex, maxPages:1 tells the scanner to send 2 images. Not all scanners can do this! Numerous Kodak models always scan everything in the hopper once you start them. This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[orientation] |
number | Any | This parameter tells the scanner the expected orientation of the paper being fed, in the sense of upright (short edge feed) or sideways/landscape (long edge feed). This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[paperSize] |
PaperSize | USLetter | Set the paper size being fed into the scanner. Default value: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[patchCodes] |
boolean | false | When set true, patch codes are detected and the results are
available on each image delivered to the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[pixelType] |
PixelType | Any | Defines the pixel format for scanning. Every scanner capable of scanning paper documents can scan in Black & White (B&W) mode. Almost all scanners can scan grayscale and color. Many scanners, but certainly not all, can scan indexed color. Note: We recommend using resultPixelType to control pixel format. This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[resultPixelType] |
PixelType | Any | This specifies the pixel format you want delivered to your application after scanning or importing, and post-processing. This is distinct from the pixelType parameter, which controls the pixel format requested from the scanner. The pixel format used for scanning is:
Scan with applyVRS = true
Scan with applyVRS = falseNote that when VRS is disabled, resultPixelType can be effectively used in place of pixelType to control the scanner.
Import with applyVRS = true
Import with applyVRS = false
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[scanCompression] |
number | Auto | This parameter instructs the scanner whether scanned images should be compressed during scan. This parameter should be set to Enable when the scanner is confired to produce color or greyscale images only. Otherwise it should be disabled. It is strongly recommended to use Auto, incorrect value may lead to unexpected behaviour. This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[showProgress] |
boolean | false | Similar to showScannerUI, when this option is true, the scanner is asked to display a small progress dialog during scanning. These dialogs typically include a Cancel button. When set to false, the scanner is asked not to display a progress dialog during scanning. This option is ignored by |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[suppressBackgroundColor] |
boolean | false | If and only if VRS processing is enabled and resultPixelType
is This is useful when your scan batch or imported images may include invoices and other documents printed on colored paper - which you want converted to B&W - but you also expect some pages with color content which you want preserved. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[tiff] |
object | Tiff images compression settings. Properties
|