ByteScout Barcode Reader SDK - VB.NET - Decode page by page from TIFF - ByteScout

ByteScout Barcode Reader SDK – VB.NET – Decode page by page from TIFF

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – VB.NET – Decode page by page from TIFF

How to decode page by page from TIFF in VB.NET using ByteScout BarCode Reader SDK

How to code in VB.NET to decode page by page from TIFF with this step-by-step tutorial

The sample source codes on this page shows how to decode page by page from TIFF in VB.NET. Want to decode page by page from TIFF in your VB.NET app? ByteScout BarCode Reader SDK is designed for it. ByteScout BarCode Reader SDK is the SDK for barcode decoding. Can read all popular types from Code 128, GS1, UPC and Code 39 to QR Code, Datamatrix, PDF417. Images, pdf, TIF images and live web camera are supported as input. Designed to handle documents with noise and defects. Includes optional splitter and merger for pdf and tiff based on barcodes. Batch mode is optimized for high performance with multiple threads. Decoded values can be exported to XML, JSON, CSV or into custom data format.

The SDK samples like this one below explain how to quickly make your application do decode page by page from TIFF in VB.NET with the help of ByteScout BarCode Reader SDK. Follow the instructions from the scratch to work and copy the VB.NET code. Detailed tutorials and documentation are available along with installed ByteScout BarCode Reader SDK if you’d like to dive deeper into the topic and the details of the API.

Download free trial version of ByteScout BarCode Reader SDK from our website with this and other source code samples for VB.NET.

Try ByteScout BarCode Reader SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

Program.vb
      
Imports Bytescout.BarCodeReader Class Program Friend Shared Sub Main(args As String()) Dim reader As New Reader() reader.RegistrationName = "demo" reader.RegistrationKey = "demo" ' Limit search to 1-dimensional barcodes only (exclude 2D barcodes to speed up the processing). ' Change to barcodeReader.BarcodeTypesToFind.SetAll() to scan for all supported 1D and 2D barcode types ' or select specific type, e.g. barcodeReader.BarcodeTypesToFind.PDF417 = True reader.BarcodeTypesToFind.All1D = True ' Input filename Dim fileName As String = "multipage.tif" ' Pages from which barcodes to be fetched Dim readFromPages() As Int32 = {1, 2, 4, 6} For Each pageNo As Int32 In readFromPages Console.WriteLine(Environment.NewLine + "Reading barcodes from TIFF page {0}...", pageNo) ' Decoding barcodes from TIFF on page-by-page basis instead of reading whole page Dim barcodes As FoundBarcode() = reader.ReadFrom(fileName, (pageNo - 1)) ' Found results For Each barcode As FoundBarcode In barcodes Console.WriteLine("Found Barcode, Type: '{0}', Value: '{1}', Position: {2}", barcode.Type, barcode.Value, barcode.Rect) Next Next ' Cleanup reader.Dispose() Console.WriteLine() Console.WriteLine("Press any key to continue.") Console.ReadKey() End Sub End Class

Try ByteScout BarCode Reader SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout BarCode Reader SDK Home Page

Explore ByteScout BarCode Reader SDK Documentation

Get ByteScout BarCode Reader SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next