CAP_DOUBLEFEEDDETECTIONRESPONSE

Featured Clients

Sectors: FinanceInformation TechnoloyGovernmentHealthcareIndustriesEducation(show all)

TWAIN Capability: CAP_DOUBLEFEEDDETECTIONRESPONSE

CAP_DOUBLEFEEDDETECTIONRESPONSE

Description

When CAP_DOUBLEFEEDDETECTION is set to anything but Disabled, it allows an Application to set how the source will respond to detecting a double feed.

TWDP_STOP – when a multi-feed is detected the driver must end the scanner session, returning TWCC_PAPERDOUBLEFEED for the an DAT_IMAGE XFER call that applied to the bad image.

TWDP_STOPANDWAIT – the driver/device will manage the multi-feed; the application is not notified; after the problem is fixed by the operator, image capture is continued as if no multi- feed occurred.

TWDP_SOUND – the driver/device will generate an audible alert when a multi-feed is detected

TWDP_DONOTIMPRINT – the device will not print on multi-fed documents. All combinations are valid, excluding TWDP_STOP and TWDP_STOPANDWAIT as only one of those can appear at a time. If the driver is asked for both, it may pick one and return TWRC_CHECKSTATUS.

Application

The Application cannot ask for TWDP_STOP and TWDP_STOPANDWAIT at the same time.

After it receives TWCC_PAPERDOUBLEFEED, the Application can use DAT_PENDINGXFERS MSG_GET to see if it can resume the current session or if it must start a new one. If TWDP_STOPANDWAIT is in the list, then Application should not expect any errors to be returned if double-feed occurs.

Source

Values

Application cannot ask for TWDP_STOP and TWDP_STOPANDWAIT at the same time. If an Application sends TWDP_STOP and TWDP_STOPANDWAIT at the same time, then pick more suitable one and return TWRC_CHECKSTATUS.

If the Source UI and Indicators are disabled, or TWDP_STOP is in the list, then return TWRC_FAILURE TWCC_PAPERDOUBLEFEED.

Type: TW_UINT

Value after MSG_OPENDS: (may be remembered from a previous session)

After MSG_RESET/MSG_RESETALL: (selected by the data source writer)

Allowed Values: TWDP_STOP TWDP_STOPANDWAIT TWDP_SOUND TWDP_DONOTIMPRINT

Containers

MSG_GET TW_ARRAY

MSG_GETCURRENT TW_ARRAY

MSG_GETDEFAULT TW_ARRAY

MSG_SET TW_ONEVALUE TW_ARRAY

MSG_SETCONSTRAINT TW_ONEVALUE

TW_ARRAY

MSG_RESET TW_ARRAY

MSG_QUERYSUPPORT TW_ONEVALUE

Required By

None

TWAIN Version Introduced

Version 2.2

Related

CAP_DOUBLEFEEDDETECTION

TWAIN Notice

Where would you like to scan from? Scan in Web Apps Scan in Java Scan in .NET