Skip to content

yushulx/dotnet-blazor-digitize-document

Repository files navigation

Digitize Documents in .NET Blazor WebAssembly

This example demonstrates how to utilize Twain.Wia.Sane.Scanner library to develop a web application for digitizing documents in .NET Blazor.

Prerequisites

  1. Install the Dynamsoft Service on a machine that is connected to scanners and hosts a web service.

  2. Modify the host IP address to make it publicly accessible.

    dynamsoft-service-config

  3. Request a free trial license for Dynamsoft Service.

Getting Started

  1. Import the project to Visual Studio.

  2. Set the license key and host address in Pages/Index.razor:

    @code {
        private string host = "https://demo.scannerproxy.com/ddm/18626";
        private string licenseKey = "LICENSE-KEY";
    }
  3. Launch the application.

Online Demo

  1. Visit https://yushulx.me/dotnet-blazor-digitize-document/.

  2. Enter the license key and the web service URL. For quick testing, you can leave the web service URL as default.

  3. Click the Get Devices button to retrieve the scanner list. Then select a scanner and click the Scan Documents button to acquire document images.

    blazor-digitize-document