TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Using Twain Direct for Web-browser scanning

Forums › TWAIN Direct › Using Twain Direct for Web-browser scanning

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 19, 2019 at 1:50 am #51654 Reply
    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.

    January 18, 2021 at 10:35 am #59665 Reply
    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/

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Using Twain Direct for Web-browser scanning
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • could not open the twain source. Make sure there is a valid source for your sca
  • Changing TWAIN driver defaults
  • Scanner starts transfer when console gets closed (CITRIX)
  • Kodak RFS 3600
  • Didn’t save enough file scan
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.