DocuVieware Reference Guide
Reference Guides > JavaScript API > Actions > TWAIN Acquisition > 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)


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