KA.Barcode for RDLC is a powerful control library for RDLC Reports development that supports PDF-417 barcode creation. This PDF-417 barcode generator draws high quality graphics object in RDLC Reports in Windows applications and ASP.NET projects. You can easily get user-defined barcode image using C#.NET or VB.NET. The parameters of generated PDF-417 barcode image are highly customizable.
PDF-417 is a stacked 2D barcode used in a variety of industrial applications, including primarily transport, identification cards and inventory management. PDF is short for Portable Data File. The term of 417 suggests that each pattern of a PDF-417 is 17 units long and consists of four bars and spaces.
Developers are allowed to use this evaluation version for demo purposes because PDF-417 barcode image generated with this evaluation version will include a "KA Barcode" watermark.
C# Sample code
private void Form1_Load(object sender, EventArgs e)
{
// load data to the data table this.vProductAndDescriptionTableAdapter.Fill
this.vProductAndDescriptionTableAdapter.Fill(this.AdventureWorks.vProductAndDescription);
// create a linear barcode object
BarCode pdf417 = new BarCode();
// set barcode type
pdf417.Symbology = KeepAutomation.Barcode.Symbology.PDF417;
pdf417.X = 2;
pdf417.Y = 2;
// draw barcodes for each data row
foreach (AdventureWorks.vProductAndDescriptionRow
row in this.AdventureWorks.vProductAndDescription.Rows)
{// set barcode encoding data value
pdf417.CodeToEncode = row.ProductID.ToString();
// set drawing barcode image format
pdf417.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;
row.Barcode = pdf417.generateBarcodeToByteArray();
}
this.reportViewer1.RefreshReport();
}
VB Sample code
Private Sub Form1_Load(sender As Object, e As EventArgs)
' load data to the data table this.vProductAndDescriptionTableAdapter.Fill
Me.vProductAndDescriptionTableAdapter.Fill(Me.AdventureWorks.vProductAndDescription)
' create a linear barcode object
Dim pdf417 As New BarCode()
' set barcode type
pdf417.Symbology = KeepAutomation.Barcode.Symbology.PDF417
pdf417.X = 2
pdf417.Y = 2
' draw barcodes for each data row
For Each row As AdventureWorks.vProductAndDescriptionRow In Me.AdventureWorks.vProductAndDescription.Rows
' set barcode encoding data value
pdf417.CodeToEncode = row.ProductID.ToString()
' set drawing barcode image format
pdf417.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
row.Barcode = pdf417.generateBarcodeToByteArray()
Next
Me.reportViewer1.RefreshReport()
End Sub
What purposes does PDF417 serve?
PDF417 is a high-density stacked 2D barcode. It's used in various fields like driver's licenses, airline boarding passes, transportation, and inventory control.
And also is a versatile 2D barcode commonly You'll find it on items like driver's licenses, airline boarding passes, and government ID cards.
What makes PDF417 and QR Code different from each other?
PDF417 and QR Code are both 2D barcodes. PDF417 offers higher damage resistance (50%) than QR codes (30%).
How much information can a PDF417 store?
With error correction level set to 0:
- For text: 1,850 characters
- For binary data: 1,108 bytes
- For numerals only: 2,710 digits
How is the aspect ratio of a PDF417 calculated?
For a printed PDF417 barcode, its aspect ratio depends on two dimensions:
- X: The width of the thinnest bar and thinnest space.
- Y: The height of each row.