https://github.com/dynamsoft/web-twain-react-advanced-mode
https://github.com/dynamsoft/web-twain-react-advanced-mode
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dynamsoft/web-twain-react-advanced-mode
- Owner: Dynamsoft
- Created: 2021-12-13T02:40:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T03:06:17.000Z (over 1 year ago)
- Last Synced: 2024-12-28T03:42:01.102Z (about 1 year ago)
- Language: JavaScript
- Size: 173 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynamic Web TWAIN React Advanced
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). It utilizes the SDK [Dynamic Web TWAIN](https://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx) to provide the following functionalities
* Scan documents from physical scanners
* Capture images from webcams
* Load documents from local disk (bmp/jpg/png/tif/pdf)
* View and process the documents already scanned/captured/loaded
* Editing (rotate/flip/mirror/crop, etc.)
* Saving or uploading
* Barcode reading
## Usage
Environment: Node.js v18.16.0
1. Apply for a [30-day free trial license](https://www.dynamsoft.com/customer/license/trialLicense?product=dwt) of Dynamic Web TWAIN.
2. Update the license key in `src\DynamsoftSDK.js` file:
```
Dynamsoft.DWT.ProductKey = "LICENSE-KEY";
```
3. Install the dependencies:
```
npm install --force
```
4. Run the application as follows:
```
npm start
```
5. Set up and run the server piece which is used solely for receiving uploaded files. Run the command-line as follows:
```
cd server
npm install
node server.js
```
## Build
Run `npm run build` to build the project. The build artifacts will be stored in the `build/` directory.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!