KA.Barcode for .NET WinForms
How to Create & Resize PDF-417 in .NET WinForms
Source code to generate, print PDF417 images using Barcode Generator for .NET WinForms Control
  • High-quality controls completely written in managed C# with full integration for Microsoft .NET Framework
  • Easily integrate PDF-417 barcodes generation function into Microsoft Visual Studio
  • Programmatically generate, create matrix PDF-417 using C#.NET and VB.NET class library
  • Draw ASP.NET ISBN, .NET WinForms Interleaved 2 of 5, .NET UPC-E, .NET ISBN & other EAN-8 VB.NET in .NET IDEs
  • Draw, generate 2D PDF-417 in stream object, in graphics object, and image formats
  • Various PDF417 bar code dimensions to adjust including bar width & height, image width & height, etc
  • Quiet zones automatically added as specified in ISO/IEC 15438 standard
  • Support creating matrix PDF417 with specified column number and row number
  • Provide detailed generation guides online, such as .NET barcode creation, Word barcode sample & Java barcode creation
  • Thermal printer support to allow high-quality PDF417 output on low-resolution printers
KA.Barcode Generator for .NET WinForms is a powerful barcode creator component SDK library that support drawing, painting accurate PDF-417, as well as other 1d 2-dimensional barcode images, in .NET Windows Forms applications, Crystal Reports, C#.NET, Visual Basic.NET class & console applications, etc.
Here are two more tutorials for PDF417 generation in WinForms:
PDF-417 Size Setting with C#, VB.NET Class in .NET WinForms

Install PDF-417 Barcode Creator Control into .NET WinForms Projects

  1. 1.
  2. 2.
    Add reference: Add "KeepAutomation.Barcode.Windows.dll" to your .NET project reference
  3. 3.
    Add to toolbox: To add BarcodeControl to your Visual Studio .NET toolbox
Copy the C# or VB.NET barcode syntax onto you program to produce, display PDF417 in .NET Windows forms:
using KeepAutomation.Barcode.Bean;
BarCode barcode= new BarCode();
barcode.Symbology= KeepAutomation.Barcode.Symbology.PDF417;
barcode.CodeToEncode = "PDF417";
Dim pdf417 As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

barcode.Symbology= KeepAutomation.Barcode.Symbology.PDF417
barcode.CodeToEncode = "PDF417"

Drawing PDF417 Barcode with Specified BarcodeUnit

KA.Barcode Generator for .NET WinForms provides three units of measure for generating PDF417 in WinForms. Default value is Pixel. Copy the demo code below to adjust it:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel;
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel
Byte data (default: ISO/IEC 8859-1); Kanji characters. QR Code Generation in .NET Projects. Above all, please download KA.Barcode for .NET Suite...
QR Code is variable-length, so users are free to encode and make QR Code barcodes at any length using our VB.NET QR Code Barcode Library with...
As url through Microsoft IIS, or simple generate QR Code with Visual C# programming in ASP.NET web projects. View How to generate barcode in C#.NET...

Generating PDF417 with Specific Bar Width & Height)

KA.Barcode Generator for .NET WinForms provides "X" (bar width) and "PDF417XtoYRatio" to adjust bar width and bar height. Default value for bar width is 1 pixel, and XtoYRatio is 0.3f. Follow the C#/ VB.NET sample code below to adjust:
barcode.X = 3;
barcode.PDF417XtoYRatio = 0.3f;
barcode.X = 3
barcode.PDF417XtoYRatio = 0.3f

Creating PDF417 with Fixed Barcode Width & Height

If users want to generte a PDF417 with fixed image width & height for a pre-defined space, you can just refer to the "BarCodeWidth" and "BarCodeHeight" parameters. Here is some sample code for customization.
barcode.BarCodeWidth = 240;
barcode.BarCodeHeight = 75;
barcode.BarCodeWidth = 240
barcode.BarCodeHeight = 75

Painting PDF417 with Defined Column & Row Number

With KA.Barcode Generator for .NET WinForms, developers can also printout a PDF417 with specified column number and row number. Here is the sample code:
barcode.PDF417RowCount = 3;
barcode.PDF417ColumnCount = 5;
barcode.PDF417RowCount = 3
barcode.PDF417ColumnCount = 5

Making a PDF417 Truncated (Compact PDF417)

In a relatively clean environment, you can leave out the latter part of PDf417 image for better space efficiency. Here is the demo code for you:
barcode.Truncated = true;
barcode.Truncated = true

Adding Quiet Zones/ Margins for PDF417

The ISO / IEC 15438 specification requires a minimum 2X quiet zones / margins on the horizontal sides of PDF417 image. Here is the sample code for users to adjust:
barcode.LeftMargin = 6;
barcode.RightMargin = 6;
barcode.TopMargin = 6;
barcode.BottomMargin = 6;
barcode.LeftMargin = 6
barcode.RightMargin = 6
barcode.TopMargin = 6
barcode.BottomMargin = 6
PDF417 Size Setting with Drag & Drop BarcodeControl
  1. 1.
    Add .NET WinForms BarCodeControl into Visual Studio .NET Toolbox
  2. 2.
    Drag and drop the BarCodeControl into the Forms and a Codabar image is generated
  3. 3.
    Find barcode setting panel, choose "Symbology" to "PDF417" and write down encode data
  4. 4.
    Set "X" to 3, "XtoYRatio" to 0.3f; Set "BarcodeWidth" to 240 and "BarcodeHeight" to 70
  5. 5.
    Set "TopMargin", "BottomMargin", "RightMarign" and "LeftMargin" to 6
  6. 6.
    Set "RowCount" to 3, "ColumnCount" to 5, and "Truncated" to true
  7. 7.
    Now the PDF417 with updated settings will appear on the form