![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Dynamic Web TWAIN is a TWAIN/ICA/SANE-based scanning SDK software specifically designed for web applications running on Windows/macOS/Linux. With just a few lines of code, you can develop robust applications to scan documents from TWAIN/ICA/SANE-compatibl
Dynamic Web TWAIN is a cross-platform scanning SDK designed for web document management applications. With just a few lines of JavaScript code, you can develop robust web applications to scan documents, edit images and save them to file systems. To see it in action, please visit this online demo
Note: Dynamic Web TWAIN SDK v18.5.1 is built in this package. For more detail, check the Version Info.
If you do not have a physical scanner to test on Windows, you can install a virtual scanner.
Read more here.
Dynamic Web TWAIN relies on the files in the /dist/
folder to work. Make sure to put these files on your server and correctly refer to them by specifying the path with ResourcesPath
(relative and absolute paths are both fine).
If you are making use of the CDN
jsDelivr, you will still need to host the /dist/
folder somewhere on your server and refer to it by specifying the path with ResourcesPath
. This is because file types like .msi are not allowed by this CDN.
dynamsoft.webtwain.min.js
into your page:<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<script src="dist/dynamsoft.webtwain.min.js"></script>
</head>
<body>
</body>
</html>
Note that a relative path is used. You might want to change it based on where you are putting your code. The best practise is to put all the files on your own server and under the same domain as your web application.
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<script src="dist/dynamsoft.webtwain.min.js"></script>
</head>
<body>
<script type="text/javascript">
Dynamsoft.DWT.ResourcesPath = "dist";
Dynamsoft.DWT.ProductKey = 't0140cQMAA...';
Dynamsoft.DWT.Containers = [{ ContainerId: 'dwtcontrolContainer', Width: 270, Height: 350 }];
</script>
</body>
</html>
Note that
ResourcesPath
must be set in order to use the library.
ResourcesPath
is a relative path to where you put the directory "/dist/" and all the files in it.ProductKey
, you can request a trial key to use.The following code demonstrates the minimum code needed to use the package. Note the addition of HTML elements as well as JavaScript code. For more sophisticated sample or demo, check out the Sample Gallery and our Github Repositories.
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<script src="dist/dynamsoft.webtwain.min.js"></script>
</head>
<body>
<input type="button" value="Scan" onclick="AcquireImage();" />
<div id="dwtcontrolContainer"></div>
<script type="text/javascript">
Dynamsoft.DWT.ResourcesPath = "dist";
Dynamsoft.DWT.ProductKey = 't0140cQMAA...'; // Put your own key here
Dynamsoft.DWT.Containers = [{ ContainerId: 'dwtcontrolContainer', Width: 270, Height: 350 }];
window.onload = function () {
Dynamsoft.DWT.Load();
};
var DWTObject;
Dynamsoft.DWT.RegisterEvent("OnWebTwainReady", function() {
// dwtcontrolContainer is the id of the DIV to create the WebTwain instance in.
DWTObject = Dynamsoft.DWT.GetWebTwain('dwtcontrolContainer');
});
function AcquireImage() {
if (DWTObject) {
DWTObject.SelectSourceAsync().then(function(){
return DWTObject.AcquireImageAsync({
PixelType: Dynamsoft.DWT.EnumDWT_PixelType.TWPT_RGB,
Resolution: 200,
IfCloseSourceAfterAcquire: true
});
}).catch(function (exp) {
alert(exp.message);
});
}
}
</script>
</body>
</html>
Features | Windows | Linux | macOS |
---|---|---|---|
Supports up to TWAIN specification 2.3 | :heavy_check_mark: | :x: | :x: |
SANE compatible | :x: | :heavy_check_mark: | :x: |
Supports up to TWAIN specification 1.9; ICA compatible | :x: | :x: | :heavy_check_mark: |
Supports capturing document | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Supports editing document | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Optional disk caching mechanism for high volume scanning (thousands of pages) | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Built-In Auto Document Feeder (ADF) and multiple image acquisition | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Offers duplex scanning mode | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Supports blank page detection | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Supports setting up image acquisition parameters (resolution, pixel type, bit depth, brightness, contrast, page size, unit, etc.) | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Provides native and disk file image transfer modes | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
Buffered memory transfer mode | :heavy_check_mark: | :x: | :x: |
Contact Dynamsoft to resolve any issue you encounter with the library.
https://www.dynamsoft.com/Products/WebTWAIN_License.aspx
Dynamsoft Service (DynamsoftService.exe, 64bit)
v18.5.1 (build version 1, 8, 5, 0828)
Dynamsoft Service Manager (DWASManager_18500312.dll, 64bit)
v18.5.1 (build version 18, 5, 0, 0312)
Device Manager (DeviceManager_18510828.dll, 64bit)
v18.5.1 (build version 18, 5, 1, 0828)
Dynamic Web TWAIN (dwt_18.5.1.0828.dll, 64bit)
v18.5.1 (build version 18, 5, 1, 0828)
Dynamsoft PDF Rasterizer (DynamicPdfRx64_11.5.3.0828.dll, 64bit)
v18.5.1 (build version 11, 5, 3, 0828)
Dynamsoft Barcode Reader (dbrx64_9.6.1.0312.dll, 64bit)
v9.6.1 (build version 9, 6, 1, 0312)
Dynamsoft Webcam Addon (DynamicWebcamx64_15.0.0.0625.dll, 64bit)
v18.5.1 (build version 15, 0, 0, 0625)
Dynamsoft Upload Module (UploadModule_1.8.5.0828.dll, 64bit)
v18.5.1 (build version 1, 8, 5, 0828)
Check out the release notes of the Dynamic Web TWAIN library.
FAQs
Dynamic Web TWAIN is a TWAIN/ICA/SANE-based scanning SDK software specifically designed for web applications running on Windows/macOS/Linux. With just a few lines of code, you can develop robust applications to scan documents from TWAIN/ICA/SANE-compatibl
The npm package dwt receives a total of 0 weekly downloads. As such, dwt popularity was classified as not popular.
We found that dwt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.