Constructor
new WindowsScanner(baseURLopt)
- Description:
Instantiate a WIA compatible scanner
- Source:
- See:
Example
const scanner = new WindowsScanner()
const doc = await camera.scan()
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
baseURL |
string |
<optional> |
Protocol, domain, and port for the service. |
Extends
Methods
(async) scan(captureOptopt, deviceOptopt)
- Description:
Scan a document
- Source:
- Overrides:
Example
// Scan document as an ArrayBuffer and add it to an img tag appended to
// the document's body.
const img = document.createElement('img')
img.src = await scanner.scan()
document.body.appendChild(img)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
captureOpt |
CaptureOptions |
<optional> |
Additional options for capturing a signature. |
deviceOpt |
string | object |
<optional> |
Can a document using either a specific Device ID or a Device Object. The default is the first available device. |