It is simple to implement above PDF417 barcode reading features in .NET, C#, & VB.NET applications. Firstly, please download pqScan .NET Barcode Scanner (free trial) online and unzip it. Then, locate pqScan.BarcodeScanner.dll and add it to your Visual Studio .NET project reference. Later, you may directly use the following .NET APIs to read and decode PDF-417 from various image file formats.
Just suppose that you know the barcodes on your images are PDF417 only. Then, with the following three .NET APIs, you can read all PDF-417 bar codes from loaded image files that might be in the form of Bitmap, Stream or picture at the disk. The barcodes can be located in any position of the image, top or bottom, left or right, all can be scanned out using pqScan .net barcode decoding software.
public static BarcodeResult[] Scan(Bitmap bitmap); public static BarcodeResult[] Scan(Stream stream); public static BarcodeResult[] Scan(string filename);
Of course, sometimes you may have several other barcodes on your image files, like 2D barcodes QR Code, Data Matrix and Aztec Code, as well as 1D barcode Code 39. What if you only want to scan and decode PDF-417 from your images, how to achieve that? Try the following APIs that can be used to define a specific barcode type for such a situation.
public static BarcodeResult[] Scan(Bitmap bitmap, BarCodeType barType); public static BarcodeResult[] Scan(Stream stream, BarCodeType barType); public static BarcodeResult[] Scan(string filename, BarCodeType barType);
Moreover, to improve barcode recognition accuracy, we provide the APIs for one barcode recognition. It is suitable when there's only one barcode on your image.
public static BarcodeResult ScanSingle(Bitmap bitmap); public static BarcodeResult ScanSingle(Stream stream); public static BarcodeResult ScanSingle(string filename);
Within seconds, the scanning results of defined PDF-417 barcodes will be returned in your Visual Studio .NET project as the form of array. For later output form, you can customize on your own. Here, you may get more C# and VB.NET demo codes for recognizing (PDF417) barcode on bmp, jpg, jpeg, png, tif, tiff, and gif image files.
- How to Recognize PDF417 Using C#/VB.NET
- How to Recognize Barcode in C# Class
- How to Recognize Barcode in VB.NET Class
Please note that, our PDF417 barcode scanning dll can only detect and read barcodes from image files in .NET web and windows programs. But now, we support decoding barcode from PDF document file as well. For this case, pqScan .NET Converter for PDF to Image should be used together, firstly rendering PDF to image file.