This sample demonstrates how to create a desktop document scanning app using Electron and the Dynamic Web TWAIN SDK for Windows, Linux and macOS.
Refer to https://github.com/electron/electron-quick-start for guidance on setting up a basic Electron application, which requires just these files:
Request a trial license and update the license key in index.html
:
Dynamsoft.DWT.ProductKey = 'LICENSE-KEY';
Install the dependencies:
npm install -g electron
cd app
npm install
Run the app:
electron .
# Or
# npx electron .
Install asar.
npm install -g asar
Package the app:
asar pack app app.asar
app.asar
file to the resources
folder.