XDoc.PDF
Features
Tech Specs
How-to VB.NET
Pricing
How to Start Convert PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

VB.NET PDF - Acquire or Save PDF Image to File in VB.NET


VB.NET TWAIN Add-on for Saving Acquired PDF Image to File in VB.NET





Look for HTML5 PDF Editor?

EdgePDF: ASP.NET PDF Editor is the best HTML5 PDF Editor and ASP.NET PDF Viewer based on XDoc.PDF, JQuery, HTML5. It supports ASP.NET MVC and WebForms projects.


Overview



If you want to acquire an image directly into the VB.NET application in which you are going to work with the image, you'd better use the widely used application programming interface - TWAIN. TWAIN is not a hardware-level protocol, but a communication protocol that realizes connection between software and digital imaging devices.


Using our VB.NET TWAIN Add-On, you are capable of scanning images from digital imaging devices (such as TWAIN compatible scanners and digital cameras) automatically and saving the images to file in VB.NET application.




VB.NET TWAIN Scanning DLLs: Scan Many Pages into One PDF



In order to scan multiple pages into one PDF document through VB.NET programming language, you may need to add the following dlls to your Visual Basic .NET TWAIN scanning project.


Add necessary references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Raster.dll


  RasterEdge.XDoc.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.Imaging.WinformsControl.Twain.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Raster.Core;


  using RasterEdge.XDoc.PDF;


  using RasterEdge.Imaging.WinformsControl.Twain;


  using RasterEdge.XImage.Raster;




VB.NET TWAIN Scanning Events: Scan Many Pages into One PDF



To accomplish this kind of VB.NET TWAIN scanning, it is indispensable to set up some events to assist with the process of scanning from device and convert the images obtained to form a PDF document.


AcquireCanceled: Raised if VB.NET user cancels TWAIN acquisition process.


AcquireCompleted: Raised when the scanner has finished scanning the last page.


ImageAcquired: Raised each time the scanner finishes scanning a page.