Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode > VB.NET Barcode Generation Guide > VB.NET PDF-417 Barcode SDK Guide, still generates QR Code in VB.NET
Download Barcode for .NET Suite Trial

PDF417 Barcode Generator Lib for .NET in VB Class

How to Generate PDF-417 Barcodes Images in .NET with Visual Basic
  • Easy to be integrated into VB.NET development environments, without activation key
  • Create PDF417 barcodes in Reporting Services & Crystal Reports & RDLC Reports
  • Simple to generate PDF417 in VB.NET web projects & VB.NET WinForms programs
  • Able to draw & encode PDF417 barcode images to jpeg, gif, png and bitmap files
  • Provide several Visual Basic methods to output PDF417 barcodes to VB objects
  • Offer friendly-used developer guide for VB.NET 2D PDF417 barcoding
This guide provides a comprehensive overview of generating PDF-417 barcodes using the BarcodeLib SDK within VB.NET.

PDF-417, also known as Portable Data File 417, is a stacked linear barcode symbology that can encode large amounts of data in a compact form. It is commonly used in applications such as transportation, identification cards, and inventory management.

The BarcodeLib VB.NET PDF-417 Generator is designed for seamless integration into Windows Forms (WinForms) and Windows Presentation Foundation (WPF) desktop applications, as well as class libraries and console projects.
Introduction of VB.NET PDF417 Barcode Image
PDF417, also known as Portable Data File 417, is a commonly used 2D barcode. It has 9 error correction levels, so it can encode data securely. All PDF417 barcode images generated by this VB.NET Barcode Generator are compatible with latest PDF417 barcode specifications.


Create PDF-417 Barcodes in VB.NET

The following VB.NET example consolidates the essential settings for generating a PDF-417 barcode within a class library, Windows Forms, or WPF application. Comments are provided to explain each configuration option.

Imports BarcodeLib.Barcode

Dim barcode As PDF417 = New PDF417

' PDF-417 Barcode Basic Settings
barcode.Data = "112233445566"
barcode.DataMode = PDF417DataMode.Text
barcode.ECL = PDF417ECL.Level_2
barcode.Truncated = False
barcode.RowCount = 7
barcode.ColumnCount = 5

' Tilde Processing
'   Set ProcessTilde = True to use "~" for special characters.
'   Supported formats:
'       1-byte character: ~0dd/~1dd/~2dd (value 000-255)
'       2-byte (Unicode): ~6ddddd (value 00000-65535)
'       ECI: ~7dddddd (value 000000-999999)
barcode.ProcessTilde = True

' Size Settings
barcode.UOM = UnitOfMeasure.PIXEL
barcode.X = 3
barcode.XtoYRatio = 0.3333333F
barcode.LeftMargin = 0
barcode.RightMargin = 0
barcode.TopMargin = 0
barcode.BottomMargin = 0
barcode.Resolution = 96
barcode.Rotate = Rotate.Rotate0

' Output Format
barcode.ImageFormat = System.Drawing.Imaging.ImageFormat.Gif()

' Generate and Save
barcode.drawBarcode("c://pdf-417.gif")


How to create, print PDF417 barcode with options using VB.NET?

PDF-417 Error detection and correction (ECL) in VB.NET

Each PDF-417 symbol contains error correction codewords that enable both error detection and correction. The error correction level can be selected at the time of symbol creation.

The VB.NET barcode library provides the ECL property for this purpose.

The following list shows the number of error correction codewords for each error correction level:
  • Level 0: 2 codewords
  • Level 1: 4 codewords
  • Level 2: 8 codewords
  • Level 3: 16 codewords
  • Level 4: 32 codewords
  • Level 5: 64 codewords
  • Level 6: 128 codewords
  • Level 7: 256 codewords
  • Level 8: 512 codewords


Create Compact (Truncated) PDF417 barcodes using Visual Basic .NET

Compact PDF-417, also known as Truncated PDF-417, omits the right row indicators and some other elements to reduce the symbol size. This variant is suitable when space is limited and symbol damage is unlikely.

To generate a compact PDF-417 using the BarcodeLib VB.NET generator, set the Truncated property to True.

Dim barcode = New PDF417()
barcode.Data = "PDF-417"
barcode.Truncated = True
barcode.drawBarcode("C://Output//vb-net-pdf417-compact-demo.png")


Create Macro PDF417 barcodes in VB.NET

Macro PDF-417 provides a mechanism to split a large data set across multiple PDF-417 symbols. This is similar to Structured Append in other symbologies and is useful when encoding large files or extensive datasets.

Up to 99,999 individual PDF-417 symbols can be used within a single Macro PDF-417 structure.

  1. Enable Macro mode by setting the Macro property to True.
  2. Assign a unique, consistent MacroFileIndex value to all symbols that belong to the same data set.
  3. Specify the total number of symbols using MacroSegmentCount.
  4. Set the current symbol's sequence index using MacroSegmentIndex. The first symbol should use index 0.
Note: All symbols sharing the same data message must use the same MacroFileIndex value. Ensure MacroSegmentIndex values are correctly ordered to allow proper reconstruction when scanning.

Dim barcode = New PDF417()
barcode.Data = "Macro PDF-417"
barcode.Macro = True
barcode.MacroFileIndex = 3
barcode.MacroSegmentCount = 10
barcode.MacroSegmentIndex = 2
barcode.drawBarcode("C://Output//vb-net-pdf417-macro-demo.png")
Guide to Create PDF-417 Images in VB.NET ASP.NET Web Applications
  1. Add Barcodelib.Barcode.ASP.NET.dll to your web project.
  2. Add Barcodelib.Barcode.ASP.NET.dll to the Toolbox.
  3. Find the folder barcode in the trial package and copy files "pdf417.aspx", "pdf417.aspx" to your web project folder.
  4. Drag PDF417ASPNET from the Toolbox and drop it on your web project. Then you will see a PDF417 barcode image.
  5. Adjust the settings in the Properties Window or generate it with above free VB.NET code.
Guide to Generate PDF-417 Barcodes in VB.NET Windows Forms Projects
  1. Add BarcodeLib.Barcode.WinForms.dll to your Windows Forms project.
  2. Add BarcodeLib.Barcode.WinForms.dll to the Toolbox.
  3. Drag PDF417WinForm to your windows form and you will see a PDF417 barcode image. Click the image and adjust its parameters in the Properties Window or you can create a PDF417 barcode with above VB free sample codes.


Summary

This guide has provided a detailed walkthrough for generating PDF-417 barcodes using the BarcodeLib SDK in VB.NET. The library supports essential features such as error correction level selection, compact (truncated) symbols for space constrained environments, and Macro PDF-417 for splitting data across multiple barcodes.

These capabilities are well suited for integration into Windows Forms (WinForms) and Windows Presentation Foundation (WPF) desktop applications, as well as other .NET project types. By following the examples and explanations provided, you can confidently incorporate PDF-417 generation into your VB.NET projects.
PDF417 VB.NET Barcode Generator Supported Barcode Types
VB.NET Linear Barcodes:
VB.NET Matrix Barcodes:
VB.NET Barcode Library - Encodes Linear Barcode Images: Codabar, Code 11, Code 2 of 5, Code 39, Code 93, Code 128, EAN 8, EAN 13, EAN 128, Interleaved 2 of 5, ITF14 (UPC Shipping Container Symbol), MSI Plessey, OneCode, Planet, Postnet, RM4SCC (British Royal Mail 4-State Customer Barcode), UPC-A, UPC-E.
VB.NET Barcode Library - Encodes 2D Barcodes Images: Data Matrix, PDF417, QR Code.





Provides High Quality Barcode .NET DLL, Barcode ASP.NET DLL, Barcode C# DLL, Barcode VB.NET DLL, Barcode WinForms DLL, PDF-417 .NET DLL, PDF-417 ASP.NET DLL, PDF-417 C# DLL, PDF-417 VB.NET DLL, PDF-417 .NET WinForms DLL, .NET SSRS PDF-417 DLL, .NET Crystal Reports PDF-417 DLL, .NET RDLC Reports PDF-417 DLL.