KA.Barcode for .NET Suite
How to Generate PDF-417 in C# Application
How to Generate 2D PDF-417 Barcode Images Using Visual C# in .NET Applications
  • Completely written in C#.NET with full integration into .NET development environments
  • Generate PDF-417 barcode in ASP.NET, WinForms, Class & Console, Crystal Reports & RDLC Reports
  • Generate PDF-417 images in stream & graphics object and support png, jpeg, gif, tiff & bmp image formats
  • Offer flexible PDF-417 barcode dimension options to select, like width, height, color, orientation, resolution, etc
  • Support PDF-417 Column Count, PDF-417 Row Count, PDF-417 Truncation and Error Correction Level properties
  • Create PDF-417 barcode images with C# sample code compatible with latest PDF-417 encoding specifications
C# PDF-417 Barcode Control Summary
KA.Barcode for .NET Suite is a mature and reliable barcoding encoder control SDK for generating two-dimensional Data Matrix images in .NET development environment. Developers can easily create and display Data Matrix in ASP.NET web pages, Windows Forms & Crystal Reports with C# programming. Flexible barcode settings are also available for users to customize generated images.
KeepAutomation barcode encoder for .NET is a versatile barcoding component SDK API for developers to easily generate & integrate PDF-417 and other linear & 2D barcode symbologies in .NET projects with C# progamming. What's more, a variety of barcoding features are available for users to adjust the generated barcode images, such as row count, column count, width, height, orientation, etc.
What Is A PDF-417 Barcode
PDF417, also named Portable Data File 417, PDF 417, PDF417 Truncated, is a stacked bi-dimensional barcode symbol used mainly in transport, inventory management and identification cards.
PDF-417 Barcode Creation in ASP.NET Using C#
This barcode encoder control SDK library provides three methods to stream PDF-417 in ASP.NET: barcode control drag-and-drop in ASP.NET websites, Visual C# Class Library and Microsoft IIS. Installation is quite simple as you only need to add this library to reference or Toolbox. For detailed guide, click here: How to print barcode in Visual C# with ASP.NET web control.
PDF-417 Barcode Generation in .NET WinForms Using C#
To paint and draw PDf-417 barcode images in .NET Windows Forms applications, you can add control to Toolbox and drag & drop it for direct PDF-417 image generation. Or you can add the barcode library to reference and generate PDF-417 with Visual C# Class Library / Console Application. Here is a detailed guide: How to create barcode in .NET WinForms with Visual C#.
PDF-417 Barcode Making in Crystal Reports Using C#
This barcode generator for .NET Suite can also support PDF-417 2D barcode generation in Crystal Report. Users can convert columns of data into multiple PDF-417 barcode images with just a few clicks. Detailed tutorial are given with C#.NET sample code. Click here to view more: How to create barcode in Crystal Reports with Visual C#.
PDF-417 Barcode Adding in RDLC Reports Using C#
.NET Barcode Generator SDK Library supports creating PDF-417 barcode images in Visual Studio 2005 / 2008 / 2010 Report Viewer RDL reports (RDLC Local Report), which can accurately convert columns of data into multiple PDf-417 barcode images with simple steps. Refer to: How to create barcode in RDLC Reports with C# code.
PDF-417 Barcode Generation in .NET Applications with C#
Below is Visual C# demo code for you to generate PDF-417 barcode images in C# Class Library. You may make necessary adjustment according to your target barcode properties. Make sure you have added reference to this barcode control at first.
C# Sample code
     BarCode pdf417 = new BarCode();
pdf417.Symbology = KeepAutomation.Barcode.Symbology.PDF417;

pdf417.PDF417RowCount = 3;
pdf417.PDF417ColumnCount = 5;
// Set PDF 417 encoding valid input: All ASCII characters. Length: variable.
pdf417.CodeToEncode = "PDF417";

//Select a data format for PDF-417 according to your data:
//Auto: automatic data format selection according to your data
//Text: each codeword represents one or two characters.
//Byte: each group of 5 codewords represents 6 bytes.
//Numeric: groups of up to 15 codewords represent as many as 44 decimal digits.
pdf417.PDF417DataMode = PDF417DataMode.Auto;
// Set PDF 417 image size

// Unit of measure, pixel, cm and inch supported.
pdf417.BarcodeUnit = BarcodeUnit.Pixel;
// PDF 417 image resolution in dpi
pdf417.DPI = 72;
// PDF 417 bar module width (X Dimension)
pdf417.X = 3;
// PDF 417 bar width vs bar height
pdf417.PDF417XtoYRatio = 0.3f;

// PDF 417 image left margin size, minimum value is 2X.
pdf417.LeftMargin = 6;
pdf417.RightMargin = 6;
pdf417.TopMargin = 6;
pdf417.BottomMargin = 6;
// PDF417 image orientation, 90, 180, 270 degrees supported.
pdf417.Orientation = KeepAutomation.Barcode.Orientation.Degree0;

// PDF417 image format, support png, jpeg, gif, tiff, bmp, etc.
pdf417.ImageFormat = ImageFormat.Png;

// PDF417 Error Correction Level, 0-8 supported..
pdf417.PDF417ECL = PDF417ECL.ECL_1;

// Generate PDF 417 barcodes in image format BMP

/* Create PDF-417 barcodes in Stream object
pdf417.generateBarcodeToStream(".NET System.IO.Stream Object");

Draw & Print PDF-417 barcodes to Graphics object
pdf417.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

Generate PDF-417 barcodes & write to byte[]
byte[] barcodeInBytes = pdf417.generateBarcodeToByteArray();

Generate PDF-417 barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = pdf417.generateBarcodeToBitmap();