Document Scanning examples built with Dynamic Web TWAIN
MIT License
A collection of quickstart samples demonstrating the Dynamic Web TWAIN APIs for document scanning, uploading, editing, and more.
18.5.1
npm install -g http-server
Extract the package and copy the Resources
folder to your project.
Import the scripts in your HTML file:
<script type="text/javascript" src="Resources/dynamsoft.webtwain.initiate.js"></script>
<script type="text/javascript" src="Resources/dynamsoft.webtwain.config.js"></script>
<script type="text/javascript">
Dynamsoft.DWT.ResourcesPath = 'Resources/';
</script>
Install the package:
npm install dwt
Import the package in your HTML file:
<script src="node_modules/dwt/dist/dynamsoft.webtwain.min.js"></script>
<script type="text/javascript">
Dynamsoft.DWT.ResourcesPath = 'node_modules/dwt/dist/';
</script>
CDN:
<script type="text/javascript" src="https://unpkg.com/dwt/dist/dynamsoft.webtwain.min.js"> </script>
<script type="text/javascript">
Dynamsoft.DWT.ResourcesPath = 'https://unpkg.com/dwt/dist/';
</script>
Install the Virtual Scanner on Windows. The virtual scanner allows you to test the document scanning features without a physical scanner.
You can also get the virtual scanner source code and customize it.