Forums › TWAIN Direct › Using Twain Direct for Web-browser scanning
- This topic is empty.
-
AuthorPosts
-
Dino
- Topics - 98
- Replies - 191
- Total Posts - 289
Hello everyone,
I’m just double checking while I’m reading the documentations for Twain Direct.
Is it possible to use Twain Direct to develop a web-application that does scanning? And if it is, can it be on modern browsers?
There’s already a made system that we have and it’s outdated, it’s using ActiveX so it can only be used on Internet Explorer.
The client-side uses AngularJS, and the server-side uses C#.We are trying to have the scanning be supported by browsers other than IE.
Andrew Little- Topics - 98
- Replies - 191
- Total Posts - 289
We use a javascript lib call scannerjs.
FYI:
Scanner.js enables HTML JavaScript scanning in web browsers (Chrome, Edge, Firefox, IE). Scan documents from TWAIN WIA scanners in browsers and upload to the server side, which can be written in any script (Java, C# VB ASP.NET, PHP, Python, Ruby). JPEG, PDF, TIFF are supported.function scanToWebPageAndUpload() { scanner.scan(displayImagesOnPage, { "twain_cap_setting" : { "ICAP_PIXELTYPE" : "TWPT_RGB", // Color "ICAP_SUPPORTEDSIZES" : "TWSS_USLETTER" // Paper size: TWSS_USLETTER, TWSS_A4, ... }, "output_settings" : [ { "type" : "return-base64", "format" : "jpg"} // return images to web page { "type": "upload", "format": "pdf", // upload as PDF "upload_target": { "url": "https://YOUR_SERVER" } } ] }); }
https://github.com/Asprise/scannerjs.javascript-scanner-web-twain-wia-browsers-scanner.js/
-
AuthorPosts