Home › Forums › TWAIN Direct › Using Twain Direct for Web-browser scanning
- This topic has 7 replies, 1 voice, and was last updated 5 months ago by .
- AuthorPosts
- Dino
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 LittleWe 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/
marshmanI am a developer and wanted to do the same. There are several solutions available but are somewhat costly. If you are looking for a more simple solution then please check out cScanTWAIN https://codesharks.dev
Kevin NealThere are several web scanning applications, including some mentioned in this forum thread, that can use most modern browsers to scan, however, these web scanning applications still require a local installation of the TWAIN Classic driver and then some sort of ‘bridge’. This is certainly one good approach.
If you want web scanning PLUS zero-footprint install of no software, then TWAIN Direct certainly supports modern web browsers because TWAIN Direct is an API that can be hosted as a web service. So the web scanning application operates like most other generally available API/web services without any dependencies or requirements specific to scanning documents.
The TWAIN Working Group is here to help.
Thanks,
Kevin Neal
TWAIN Working Group, Marketing Chair
TWGForum@p3idtech.comSteevenHello
Twain-direct is new for me so I would like to know what resources and steps I need to have & take in order build a web scanner with zero-footprint install of no software.
PS: I don’t want to use a paid library.
Here is a great place to start with research and development of a TWAIN Direct scanning solutions:
MarshallAfter continued research and review of Twain Direct, which I think will be great once scanner manufacturers get on board, it appears to me that there is possibly an unintentional consequence that is misleading the “many developers that would love to use Twain Direct”.
That is to say that Twain Direct is more of a protocol and cannot be used without a bridge ( which is mentioned ) or until the scanner manufacturers adopt the protocol within their devices. If a bridge is required then it that is not much different IMO than cScanTWAIN or Dynamsoft WebTWAIN and others alike.
For the Twain work-group members, please correct me if I am wrong in my assumptions with this post. I for one am eager to see where this leads.
Thank you
-marshallKevin NealHi Marshall,
These are very good questions and observations. I am Kevin Neal with the TWAIN Working Group.
Yes, TWAIN Direct is a protocol, as you have stated, but the whole intent is to be used WITHOUT a bridge. The TWAIN Working Group does have a bridge software but this was intended to be a utility as a proof of concept until scanner manufactures put the TWAIN Direct technology in their hardware via firmware.
As of my posting this message on 1/23/2023 there are several document scanning devices that have TWAIN Direct inside of their firmware including the Xerox D70n, Xerox N60w and Xerox W130 with Network. Now that there are these document scanners with TWAIN Direct inside of the firmware, developers can use the TWAIN Direct API/protocol to create scanning applications. Dynamsoft is also a TWAIN Working Group member and I believe they might have a TWAIN Direct SDK available.
In the future, we predict that TWAIN Direct will be inside of most document scanners (and other imaging devices) as an industry-standard just like TWAIN Classic is a standard for installed drivers today.
Thanks,
Kevin
twaindirect@p3idtech.com - AuthorPosts