PDF-417 FAQ in VB.NET Barcode Generator SDK

Generate PDF-417 and adjust PDF-417 data, image, size, and other properties with VB source code available
Barcode in VB.NET > 2D > PDF417 FAQ
Generate Barcode Image Using VB.NET Class Library - PDF-417 Barcode FAQ in Visual Basic.NET
VB.NET PDF-417 barcode control library DLL is a robust and comprehensive .NET component that completely developed in .NET framework with strong-named and time-stamped signatures. This barcode DLL supports generating PDF-417 as images and displayed as Gif, Tiff, Bmp, Png or Jpeg formats. Free trial demo is provided with sample VB.NET code, source code is supplied with royalty-free developer license.
This article walkthroughs PDF-417 barcode basic settings and special settings in VB.NET applications using Visual Basic.NET class method from the following aspects:
  • Generate Barcode Image Using VB.NET Class Library - PDF-417 Data Encoding
  • Generate Barcode Image Using VB.NET Class Library - PDF-417 Special Settings
  • Generate Barcode Image Using VB.NET Class Library - PDF-417 Size Adjustment
  • Generate Barcode Image Using VB.NET Class Library - PDF-417 Image Customization
  • Generate Barcode Image Using VB.NET Class Library - PDF-417 Solution Project Support
Generate Barcode Image Using VB.NET Class Library - PDF-417 Data Encoding
2D PDF-417 Barcode Valid Data
  • Standard ASCII characters: 0-127 including A-Z, a-z, 0-9, and special characters
  • Extended ASCII characters: 128-255
PDF-417 VB.NET Sample Code:
barcode.Symbol = Terrek.Barcode.BarcodeSymbol.PDF417
barcode.BarcodeData = "Terrekpdf417VB.NET"
Generate Barcode Image Using VB.NET Class Library - PDF-417 Special Settings
PDF-417 Data Mode
The character set of PDF-417 contains three compactions: text compaction (ASCII 0 - 255), byte compaction (ASCII 9, 10, 13 & 32 - 127), and numeric compaction (digits 0 - 9). Terrek.Barcode for VB.NET adds "Auto" data mode for PDF-417 easy and quick generation. Users may set PDF417DataMode property to customize data modes.
PDF-417 VB.NET Sample Code:
barcode.PDF417DataMode = Terrek.Barcode. PDF417DataMode.Auto
PDF-417 ECL (Error Correction Level)
PDF-417 error correction is based on Reed-Solomon algorithm. It has 8 levels of error correction, the default is level 2. The higher the error correction level is, the less the data can be encoded. Programmers can change the error correction level through PDF417ECL property.
PDF-417 VB.NET Sample Code:
barcode.PDF417ECL = Terrek.Barcode.PDF417ECL.Level_3
PDF-417 Row & Column Count
The PDF-417 symbol size is related to row count and column count. Row count means the number of rows for PDF417. The value range is from 3 to 90. Column count means number of columns. The value range is from 1 to 30. The PDF-417 size may be changed by adjusting the PDF417RowCount and PDF417ColumnCount settings.
PDF-417 VB.NET Sample Code:
pdf417.PDF417Row=3;
pdf417.PDF417Column=5;
Truncated PDF-417
Truncate PDF-417 barcode is also called Compact PDF-417 barcode, which may omit the right row indicators or reduce some of the row overhead. Compact PDF417 may be used where space considerations are a primary concern and symbol damage is unlikely. Developers may generate truncated PDF-417 by setting PDF417Truncated to true.
PDF-417 VB.NET Sample Code:
pdf417. PDF417Truncated = false
PDF-417 Tilde Function
Set the Tilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is true. ~NNN: is used to represent the ASCII character with the value of NNN.
Generate Barcode Image Using VB.NET Class Library - PDF-417 Size Adjustment
PDF-417 UOM (Unit of Measure)
Set property MeasuringUnit for properties BarWidth, BarHeight, MarginL and MarginT. Valid values are PIXEL, CM and INCH. Default is PIXEL. With this UOM setting, users can control the whole barcode size to a unique type.
PDF-417 VB.NET Sample Code:
barcode.MeasuringUnit = Terrek.Barcode.MeasuringUnit.PIXEL
PDF-417 Module Size
PDF-417 bar size refers to the BarWidth. Bar height is not presented, but Terrek uses WidthVSHeight to specity bar height. With the ImageResize applied, image size are changed according to the customization of bar width and wide to narrow ratio.
PDF-417 VB.NET Sample Code:
barcode.BarWidth = 1
barcode.BarHeight = 80
PDF-417 Image Size
PDF-417 image size refers to the whole barcode image size including image width and image height. If the module size is unknown, you can set the ImageHeight and ImageWidth directly with the applying of ImageResize to true. The generated Code 128 is 100% compatible with International Standard ISO/IEC 15438 (Second edition 2006-06-01).
PDF-417 VB.NET Sample Code:
barcode.ImageWidth = 100
barcode.ImageHeight = 100
PDF-417 Margin Size
Increasing the width of margins around the symbol is one way to enhance the readability of the PDF-417 barcode image. The barcode control library SDK set the left, right, top, and bottom margins separately with float values. The default value is 0.
PDF-417 VB.NET Sample Code:
barcode.MarginL = 3
barcode.MarginR = 3
barcode.MarginT = 3
barcode.MarginB = 3
Generate Barcode Image Using VB.NET Class Library - PDF-417 Image Customization
PDF-417 Image Format
PDF-417 generated in Visual Basic.NET programs with barcode control software can be displayed as Gif, Tiff, Bmp, Png, Jpeg and other image formats. Programmers may change the format using BarcodeFormat property.
PDF-417 VB.NET Sample Code:
barcode.BarcodeFormat = System.Drawing.Imaging.ImageFormat.Png
barcode.SaveAsImage("C:\ PDF-417.png")
PDF-417 Image Resolution
DPI (Dots per inch) is used commonly as the measure of printing resolution. The resolution of image generated by PDF-417 generator SDK could be managed with DPI and compatible with all printers. Type is int. Default is 96 dpi. Programmers can set resolution with DotsPerInch property.
PDF-417 VB.NET Sample Code:
barcode.DotsPerInch = 96
PDF-417 Image Position
The created PDF-417 is flexible to change the placement in VB.NET projects with source. By customizing the BarAlign properly, the image is presented left, right or center in documents or projects. By changing Rotation property, the image can be rotated to 90, 180, and 270 degrees. The default is 0 degree.
PDF-417 VB.NET Sample Code:
barcode.Rotation = Terrek.Barcode.Rotation.Degree90
barcode.BarAlign = Terrek.Barcode.BarAlign.Left
PDF-417 Image Color
It is able to change barcode colors with barcode library software DLL using VB.NET class. Both background color and foreground color are easy to be changed by manipulating ImageColor and BarColor respectively.
PDF-417 VB.NET Sample Code:
barcode.ImageColor = Color.White
barcode.BarColor = Color.Black
Generate Barcode Image Using VB.NET Class Library - PDF-417 Supported VB.NET Projects
With barcode library software for VB.NET, users are easy to generate & print PDF-417 barcode images in various VB.NET projects with free sample code and source. Free trial demo DLL with tutorial to create & print barcode images using VB.NET.
  • Windows Forms Application (design-time and runtime support)
  • Visual Basic Console Application (runtime support)
  • Visual Basic Class Library (runtime support)
  • Windows Service (runtime support)
  • ASP.NET Applications (design-time and runtime support)
  • Web Service (runtime support)
  • Crystal Report for .NET (runtime support)
  • Reporting Service Applications (design-time and runtime support)