Build a UWP Document Scanning App in WebView Context

The Universal Windows Platform (UWP) lets us build apps for any Windows device and publish them to the Store. It is the latest technology of Microsoft to create client apps. We can use the new visuals and features of the latest version of Windows in a UWP app.

Dynamic Web TWAIN (DWT) is a JavaScript document scanning library. If we want to use it to create a document scanning app with UWP, we can utilize UWP’s WebView control. A web view control embeds a view into your app that renders web content using the Microsoft Edge Legacy rendering engine.

Web Barcode Reader Using B4X

In the B4X developing suite, B4J is used to develop desktop apps based on JavaFX or server apps based on Jetty. By default, it cannot be used to create web applications without a server. A third-party library, BANano, makes this possible. It can transpile everything you write in B4J to Javascript, HTML, and CSS. The project can run purely in the browser.

Dynamsoft Barcode Reader is written in C++. It provides a JavaScript version that uses WebAssembly. The barcode decoding can be done on the client-side, which is a good match for BANano.