KA.Barcode Generator for .NET Suite
How to Create & Resize PDF-417 in VB.NET
VB.NET source code to generate, print PDF-417 images using Barcode Generator for .NET Control
  • Achieve quick integration for VB.NET PDF 417 Generator in VB.NET IDEs
  • Drawing, creating Truncated PDF-417 and Macro PDF-417 barcodes in VB.NET Project
  • Complete user manual .NET WinForms barcode sample, C# barcode integration & .NET barcode generation provided
  • Mature creator for barcoding, generating PDF417 in SQL Server Reporting Services and Crystal Reports
  • Simple to create, produce PDF-417 barcode images in VB.NET Web and WinForms applications
  • Easy generation of PDF-417 bar code with a fixed row and column numbers using Visual Basic.NET
  • Simply adjust PDF-417 matrix barcode X dimension to Y dimension ratio
  • Draw and export high-quality EAN 128 ASP.NET, EAN-13 VB.NET, Java ISBN barcodes as you wish
  • Support barcoding PDF-417 matrix bar code image width and height
  • Accurate PDF-417 creation & generation according to ISO / IEC 15438 (2nd edition 2006-06-01)
VB.NET PDF-417 barcode creator is a best barcode generating component API SDK for creating high-quality PDF-417 and other 20+ linear & 2D barcodes in multiple graphic images. Supported .NET project includes ASP.NET web pages, WinForms, Crystal Reports, SSRS, VB.NET class library. Here is a tutorial with VB.NET sample code for resizing PDF-417 barcodes in VB.NET; PDF-417 data and image related demo code are also provided in:
PDF-417 Barcode Structure
PDF-417

PDF-417 barcode (a.k.a Truncate PDF-417, Portable Data File 417) is constructed of:
  • Leading quiet zone
  • Start Pattern
  • Left row indicator symbol character
  • 1 to 30 data symbol characters
  • Right row indicator symbol character
  • Stop pattern
  • Trailing quiet zone
PDF-417 Size Setting in KA.Barcode Generator for .NET Suite

Install Barcode Generation Control API into Project

  1. 1.
  2. 2.
    Copy KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll to your VB.NET project folder
  3. 3.
    Open Microsoft Visual Studio, choose "Add Reference" in "Project"
  4. 4.
    Browse KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll
  5. 5.
    Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references
Copy those following VB.NET barcode generation program to integrate, display a PDF417 image:
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology.PDF417
barcode.CodeToEncode = "PDF-417"
barcode.generateBarcodeToImageFile("C://barcode-pdf417-vbnet.gif")

Setting PDF-417 Barcode with BarcodeUnit Property

BarcodeUnit (URL: barcode-unit; Default: Pixel): it is the unit measurement for all size related settings in PDF-417 barcodes. User may change it with "Pixel", "Inch" and "Cm". Replace sample code with following one:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel

Drawing Compact PDF-417 (Truncated PDF417)

TruncatedPDF417(URL: truncated-pdf417; Default: false): it is used for generating Truncated PDF-417 barcodes, which put space consideration first. Replace sample code with following one:
barcode.PDF417Truncated = true

Creating PDF-417 Barcode with Defined Row & Column Number

RowCount (URL: row-count; Default: 1): it is used for adjusting the number of rows in PDF-417 barcodes.

ColumnCount (URL: column-count; Default: 1): it is used for adjusting the number of column in PDF-417 barcodes.

Replace sample code with following one:
barcode.PDF417RowCount = 5
barcode.PDF417ColumnCount = 8

Generating PDF-417 with Specified X and Y

X (URL: x; Default: 1): it is the width of the narrow bar in PDF-417 barcodes.

Y (URL: y; Default: 50): it is the height of bars in PDF-417 barcodes.

Replace sample code with following one:
barcode.X = 3
barcode.Y = 3

Printing PDF-417 with Fixed BarCodeWidth and BarCodeHeight

BarCodeWidth (URL: barcode-width; Default: 0): it is the barcode width of PDF-417 barcodes.

BarCodeHeight (URL: barcode-height; Default: 0): it is the barcode height of PDF-417 barcodes.

Replace sample code with following one:
barcode.BarCodeWidth = 200
barcode.BarCodeHeight = 75

Adjusting PDF-417 Quiete Zone / Margin

TopMargin (URL: top-margin; Default: 0): it is the barcode image top margin in PDF-417 barcodes.

BottomMargin (URL: bottom-margin; Default: 0): it is the barcode image bottom margin in PDF-417 barcodes.

LeftMargin (URL: left-margin; Default: 0): it is the barcode image left margin in PDF-417 barcodes.

RightMargin (URL: right-margin; Default: 0): it is the barcode image right margin in PDF-417 barcodes.

Replace sample code with following one:
barcode.TopMargin = 8
barcode.BottomMargin = 8
barcode.LeftMargin = 6
barcode.RightMargin = 6