HTML5 Web Scanning with LEADTOOLS



Similar documents
Converting and Viewing Documents with LEADTOOLS

Using Print to PACS to Digitize Your Legacy Medical Imaging Systems

3 C i t y C e n t e r D r i v e S u i t e S t. L o u i s, MO w w w. k n o w l e d g e l a k e. c o m P a g e 3

TSG Leverages ImageCapture Suite SDK to Develop a Document Management Application for a Healthcare Client

sales:

Perfect PDF 8 Premium

K e y b o a r d s h o rt c ut s

Load and Performance Load Testing. RadView Software October

LEADTOOLS Software License Agreement (EULA) IMPORTANT

In This Guide. Nitro Pro 9 - Deployment Guide

Table of Contents 2. Table of Contents

Perfect PDF & Print 9

AUTOMATED CONFERENCE CD-ROM BUILDER AN OPEN SOURCE APPROACH Stefan Karastanev

Outside In Image Export Technology SDK Quick Start Guide

The idatix Family. Product overview of the idatix family of solutions

Dispatcher Phoenix is available in three distinct and customizable solutions to meet customer needs most effectively and efficiently:

Version5 +AutoCapture & Workflow

Developer Tutorial Version 1. 0 February 2015

d3 Document Management Solution

Kofax White Paper. Mobile Technology for Advanced AP Automation. Executive Summary

Navigate your workflow

Dreamweaver Tutorial - Dreamweaver Interface

OCR and PDF Compression

SuneroDoc Leverages Dynamsoft SDK to Help Legal, Insurance and Consulting Users Experience Simple but Comprehensive Document Management

The Employ Florida Marketplace Document Management module provides the following capabilities:

PaperSave IT Prerequisites for Blackbaud s The Financial Edge

System i & iseries Document Imaging Report Capture & Archiving System BANKING. Cross Industry Provider for Content Management AUTOMOTIVE RETAIL

Customize Mobile Apps with MicroStrategy SDK: Custom Security, Plugins, and Extensions

KIP 3000 Series MULTIFUNCTION SIMPLICITY

WebViewer User Guide. version PDFTron Systems, Inc. 1 of 13

CONTINIA DOCUMENT CAPTURE FACTSHEET ENGLISH LANGUAGE

e CABINET AND DOCULEX Document Capture and Electronic File Conversion

What s New in Cumulus 9.0? Brand New Web Client, Cumulus Video Cloud, Database Optimizations, and more.

DOCUMENT SCANNING. Following is the explanation of different settings and features:

Introduction to TWAIN Direct (DRAFT COPY) December 2, 2014 Revision 0.1

QQConnect Overview Guide

StreamServe Persuasion SP5 Ad Hoc Correspondence and Correspondence Reviewer

Synergy Document Management

Install and Configure RelayFax

MULTIMEDIA INSTALLING THE MULTIMEDIA UPGRADE

TWAIN/WIA Driver. Operation Guide

Zero Foot- Print Browser * Mobile Device Viewing Of Medical Images

OnBase 13. Unity Client Retrieval, Upload and Batch Processing. User Guide. IT Training (818)

Guidelines for the submission of invoices

WatchDox for Windows. User Guide. Version 3.9.5

Document Capture and Distribution

Contents. Overview...2. License manager Installation...2. Configure License Manager...3. Client Installation...8. FastLook Features...

The SharePoint ECM Solution

Internet Explorer Settings for Optum CareTracker

EMC ApplicationXtender Web Access

design coding monitoring deployment Java Web Framework for the Efficient Development of Enterprise Web Applications

Document Management User Guide

Managing the PowerPivot for SharePoint Environment

DocuShare User Guide

Document Archiving White Paper. Secure. Accessible. Reliable

ArcGIS Web Mapping. Sam Berg, esri

ASP.NET: THE NEW PARADIGM FOR WEB APPLICATION DEVELOPMENT

Oracle Government Financials Viewing Attachments & Invoice Approvals

Treeno File Monitor. Installation and Configuration Guide

BASIC COMPONENTS. There are 3 basic components in every Apache Cordova project:

Exploring ADSS Server Signing Services

Whats New in CRM 2015 Update 1

Voluntary Product Accessibility Report

Filestream Ltd. File Stream Document Management Integration Overview

Archiving digital documents and s in PDF/A

Selenium Automation set up with TestNG and Eclipse- A Beginners Guide

Using the VMRC Plug-In: Startup, Invoking Methods, and Shutdown on page 4

Foxit Reader Quick Guide

WebViewer User Guide. version PDFTron Systems, Inc. 1 of 13

How to Select a Document Management System:

ECR Vault Capture User Guide

Appendix A. Functional Requirements: Document Management

II. GETTING STARTED... 1

Performance Testing for Ajax Applications

8 Critical Pains with Remote Scanning

NeoDocs Document Management Software

Developing Exceptional Mobile and Multi-Channel Applications using IBM Web Experience Factory IBM Corporation 1

Design Requirements for an AJAX and Web-Service Based Generic Internet GIS Client

VirtualReScan 4.2 User s Guide

J j enterpririse. Oracle Application Express 3. Develop Native Oracle database-centric web applications quickly and easily with Oracle APEX

New Features for Sybase Mobile SDK and Runtime. Sybase Unwired Platform 2.1 ESD #2

For instance, consider a customer order process. Documents such as orders can originate from paper

White Paper: Linking Images With Applications. The TWAIN Working Group May, 2011

Switch to Electronic Document Management save time, space, money and frustration.

DWFTM. Tips &Tricks. Publish View & Print Review & Mark Up

SharePoint 2013 for Business Process Automation

Operating Instructions (For Document Manager and Document Viewer)

Data Visualization in Ext Js 3.4

White Paper. The Five Keys to a Successful Document Management System ABSTRACT. Command Your Content

Transcription:

HTML5 Web Scanning with LEADTOOLS

1 Introduction TWAIN scanning and document capture is an essential aspect and starting point of most document imaging applications. For web developers, this is a problematic requirement due to the localized, hardware-dependent nature of TWAIN scanners and image capture devices. Many roadblocks await the developer and most often the client is left with tedious and time-wasting inconveniences that make the application difficult to use. For example, scanning in a separate application creates a laborious workflow for the client. Browser plug-ins limit the flexibility of your application by locking it into specific browsers. Last but not least, updating and maintaining multiple codebases can turn your web-based scanning application into a nightmare. LEADTOOLS has developed a Web Scanning SDK that solves many of these obstacles and offers a programmer-friendly and customizable framework for integrating TWAIN scanning into any web-based document imaging solution. In this white paper, we will explore the inner-workings of this innovative framework and highlight how developers can write just a few lines of code to extend and customize it for their application. LEADTOOLS Web Scanning Components and Architecture LEADTOOLS Web Scanning consists of three major components: a Selfhosted Web Service, a cross-browser web interface built with HTML5 and JavaScript, and a Server-side Upload Web Service. Each of these components is designed with maximum extensibility in mind and makes it possible to create a robust web application with simple update procedures and separation of concerns for multi-developer teams.

2 Server Machine Browser Image Processing Self-Host Web Service EXE Store multiple pages Send stored document to client Web Service File Format/Store Client Machine Scanner Store File System/SharePoint The flexibility of this architecture allows developers to utilize one or more components for new projects, or for adding web scanning functionality to their existing web enterprise solution. Self-hosted Web Service At the heart of the LEADTOOLS Web Scanning application is the ScanningService, a Self-hosted Web Service (SHWS). This is a necessary component, since the TWAIN device s drivers can only be installed on the client machine. The SHWS receives REST commands via JavaScript that allow the browser client to select the TWAIN source, negotiate TWAIN capabilities, get the status, and acquire images to a local cache which the web application can load via URI. _scanningservice.acquire(true, function (status) for (; _totalscannedpages < status.scandpagesnumber; _ui.lastpagenumber++) _thumbnail.addthumbnail(_ui.lastpagenumber + 1, false); The SHWS is capable of implementing any of LEADTOOLS 200+ image processing functions through a customizable AddIn interface. The ApplyImageProcessingCommand web service function will call the class implementing IImageProcessingAddIn and apply the image processing function and parameters to the image and return the image through a client-accessible URI. All the AddIn needs is a function named GetIPCommand that returns a CommandCallBack object.

3 public CommandCallBack GetIPCommand(string name) switch (name) case Flip : return FlipImage; case Rotate : return RotateImage; case Deskew : return DeskewImage; case HolePunchRemove : return RemoveImageHolePunch; case BorderRemove : return RemoveImageBorder; default: return null; //... private void DeskewImage(RasterImage image, string commandparam) int anglerange = ScanningHelper.JsonStringToInteger(commandParam, anglerange ); int angleresolution = ScanningHelper.JsonStringToInteger(commandParam, angleresolution ); RasterColor fillcolor = ScanningHelper.JsonStringToRasterColor(commandParam, fillcolor ); int flags = ScanningHelper.JsonStringToInteger(commandParam, flags ); DeskewCommand cmd = new DeskewCommand(fillColor, (DeskewCommandFlags)flags); cmd.anglerange = anglerange; cmd.angleresolution = angleresolution; cmd.run(image); Then from the client-side JavaScript, calling the SHWS takes just a few lines of code: var commandparam: any = new Object(); commandparam.fillcolor = JSON.stringify(fillColor); commandparam.flags = flags; commandparam.anglerange = 0; commandparam.angleresolution = 0; _scanningservice.applyimageprocessingcommand( Deskew, _currentpagenumber, JSON.stringify(commandParam), onsuccess, onfailed);

4 HTML5 / JavaScript Web Application The client drives the application with a robust web interface that uses LEADTOOLS HTML5 Image Viewing controls and communicates with the SHWS through RESTful JavaScript commands. The demo that ships with LEADTOOLS includes the thumbnail browser, image viewer and several client-side tools including pan, zoom, fit, stretch and magnifying glass. Additional features can easily be added including annotations and markup, drag and drop, and more. Best of all, since this application is designed using HTML5 and JavaScript, it can run without any browser plug-ins on any supported browser on a Windows machine running the SHWS. Server-side Upload Web Service After the documents have been scanned and processed on the client side using the HTML5 interface and SHWS, the newly created images can be uploaded to the server for additional processing. In the shipping example application, the UploadService can convert the file to any of LEADTOOLS 150+ supported file formats and then return the URI to the client for downloading. Adding support for new file formats only requires adding a few lines of code to a switch statement within the EndDocument function inside the upload service.

5 RasterImageFormat saveformat; switch (mimetype.tolower()) case application/pdf : documentfullname = Path.Combine(storeFolderPath, name +.pdf ); saveformat = RasterImageFormat.RasPdfJpeg411; break; case image/tiff : documentfullname = Path.Combine(storeFolderPath, name +.tif ); saveformat = RasterImageFormat.TifJpeg411; break; default: throw new ArgumentException(string.Format( 0 not Supported Format, mimetype)); The source code for the upload service is provided and can be fully customized if more advanced processing is required. The IUploadService interface lays the groundwork for sending customized user data, and implementing any functionality within LEADTOOLS including OCR, Barcode, Forms Recognition, saving to SharePoint and much more. Conclusion Scanning documents into digital image formats within a cross-browser HTML5 solution is just one of many real-world solutions you can tackle with LEADTOOLS. Its state-of-the-art Web Scanning SDK makes it possible to create innovative new web applications for capturing documents, and offers a programmer-friendly and modular architecture for adding web scanning to any existing web application or workflow. It also opens the door for extending your web-based document imaging solution with any of the many additional technologies in LEADTOOLS Imaging SDKs. LEADTOOLS offers an incredible value with its comprehensive family of toolkits for raster, document, medical and multimedia imaging. For more information on how LEAD Technologies can image-enable your application and boost your ROI, visit www.leadtools.com to download a free evaluation, or give us a call at +1-704-332-5532.

Sales: (704) 332-5532 sales@leadtools.com Support: (704) 372-9681 support@leadtools.com LEAD Technologies, Inc. 1927 South Tryon Street Suite 200 Charlotte, NC 28203 About LEAD Technologies With a rich history of nearly 25 years, LEAD has established itself as the world s leading provider of software development toolkits for document, medical, multimedia, raster and vector imaging. LEAD s flagship product, LEADTOOLS, holds the top position in every major country throughout the world and boasts a healthy, diverse customer base and strong list of corporate partners including some of the largest and most influential organizations from around the globe.