Scan Documents and Save to PDF

scan documents to PDF

Scan Multiple Pages in a Batch and Save as PDF

As document scanning experts, we get this question a lot: is document scanning from within a browser possible? How so? Frequent follow-up questions are: how do I save the scanned images as a multi-page PDF file? How do I automatically separate different files in one batch? We’ll try to answer these questions. Before we provide the solution, we recommend you first give this demo webpage a try.

Scan multi-pages to PDF Online Demo

The demo application enables users to scan documents from TWAIN scanners and MFPs. They can and then save them as PDF files, either one-page PDF or multi-page PDF. Also, it utilizes barcodes as batch separators. If there is a barcode detected on the page, a new file will be created with the barcode value being the filename.

How to Use this Demo

Upon your first visit, the page prompts a message asking you to download and install Dynamic Web TWAIN, which this application is built upon. Dynamic Web TWAIN is a browser-based document scanning and webcam capture SDK. After automated installation, everything should be quite straightforward.

Learn more about Dynamic Web TWAIN

How to Build a Scan to PDF Application

Learn about Scanner Protocols

As a developer, to interact with a scanner from software, you need to understand the protocols of scanner drivers. There are several protocols on the market: TWAIN, WIA, SANE, ISIS. Of the four, TWAIN has the biggest market share. A majority of scanners on the market provide a TWAIN driver. For a more detailed comparison, check out another article TWAIN vs. WIA vs. SANE vs. ISIS.

Scan Documents to PDF in a Web Application

Scanners are peripherals and they cannot be directly accessed from a browser. You need a browser plugin/extension/windows service for use in Chrome and Firefox, and an ActiveX control for use in Internet Explorer. There is immense complexity in browser compatibility with the TWAIN protocol. So, it’s near impossible to build a browser-based document scanning module from scratch, at least within a reasonable time frame.

Fortunately, Dynamic Web TWAIN can relieve a developer from the trouble. Having evolved for 10 years, Dynamic Web TWAIN provides almost every feature you might need for web image capture: customizable scan settings, image capture from web cameras, loading local image files, image editing, and saving scanned images to local drives or uploading them to a remote web server. Furthermore, multiple imaging add-ons are available, including a barcode reader we used in the demo application. More details, such as about web server support and language support, can be found at the web page Dynamic Web TWAIN overview.

Scan Documents to PDF in a WinForms and WPF Application

It’s also important to note developer differences for WinForms and WPF. It’s a bit easier to enable document scanning in a WinForms or WPF application. Dynamsoft provides a .NET component for this purpose: Dynamic .NET TWAIN. To some extent, Dynamic .NET TWAIN is the .NET version of Dynamic Web TWAIN.

Subscribe Newsletter

Subscribe to our mailing list to get the monthly update.