ByteScout Barcode Suite - VB.NET - Decoding barcodes from pdf by pages with barcode reader sdk - ByteScout

ByteScout Barcode Suite – VB.NET – Decoding barcodes from pdf by pages with barcode reader sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – VB.NET – Decoding barcodes from pdf by pages with barcode reader sdk

decoding barcodes from pdf by pages with barcode reader sdk in VB.NET using ByteScout Barcode Suite

How to apply ByteScout Barcode Suite for decoding barcodes from pdf by pages with barcode reader sdk in VB.NET

The documentation is crafted to assist you to apply the features on your side easily. ByteScout Barcode Suite helps with decoding barcodes from pdf by pages with barcode reader sdk in VB.NET. ByteScout Barcode Suite is the bundle that privides 3 SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK).

VB.NET code snippet like this for ByteScout Barcode Suite works best when you need to quickly implement decoding barcodes from pdf by pages with barcode reader sdk in your VB.NET application. If you want to know how it works, then this VB.NET sample code should be copied and pasted into your application’s code editor. Then just compile and run it. Use of ByteScout Barcode Suite in VB.NET is also described in the documentation included along with the product.

Trial version can be downloaded from our website for free. It contains this and other source code samples for VB.NET.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

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 = "example.pdf" ' Pages from which barcodes to be fetched Dim readFromPages() As Int32 = {1, 2} For Each pageNo As Int32 In readFromPages Console.WriteLine(Environment.NewLine + "Reading barcodes from PDF page {0}...", pageNo) ' Decoding barcodes from PDF 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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next