chrome.documentScanAPI to discover and retrieve images from attached paper document scanners.
- AvailabilityChrome 44+ ChromeOS only
Document Scan API
The Document Scan API is designed to allow apps and extensions to view the content of paper documents on an attached document scanner.
Note: This API depends on OS features that may not be available depending on the underlying operating system. As of this writing only ChromeOS for certain USB-attached devices is known to successfully work.
The number of scanned images allowed (defaults to 1).
The MIME types that are accepted by the caller.
The data image URLs in a form that can be passed as the "src" value to an image tag.
The MIME type of
Performs a document scan. On success, the PNG data will be sent to the callback.
Object containing scan parameters.
callbackparameter looks like:
(result: ScanResults) => void
This only returns a
callbackparameter is not specified, and with MV3+. The type inside the
Promiseis the same as the 1st argument to