DocuVieware Reference Guide
TwainGetSources
Reference Guides > JavaScript API > Actions > TWAIN Acquisition > TwainGetSources
 TwainGetSources

This function allows you to retrieve all the available TWAIN sources with several useful informations such as the name, manufacturer, family, version as well as the current default TWAIN device.

Be sure to check that the local TWAIN service is up and running before calling this method.

TwainGetSources: function (docuViewareID)

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you work with.

Return Value

An object with the following prototype if success { defaultSource, sources: [{ sourceFamily, sourceManufacturer, sourceName, sourceVersion }] }, null otherwise.
See Also