.NET Barcode  >  .NET Barcode Generation Guide  >  .NET Barcode PDF 417 Generator for .NET, C#, ASP.NET, VB.NET


.NET Barcode PDF 417 Generator for .NET, C#, ASP.NET, VB.NET

.NET Barcode offers the most affordable .NET barcode generator for barcode .NET professionals.

.NET PDF-417 Introduction

PDF-417 is also known as Portable Data File 417, PDF 417, PDF417 Truncated

PDF417, or Portable Data File 417, is a two-dimensional stacked barcode symbology capable of encoding over a kilobyte of data per label. It was developed by Symbol Technologies (1989-1992) and is currently maintained by ANSI / AIM USA.
Large amounts of text and data can be stored securely and inexpensively when using the PDF417 symbology. The printed symbol consists of several linear rows of stacked codewords. Each codeword represents 1 of 929 possible values from one of three different clusters. A different cluster is chosen for each row, repeating after every three rows.


How to generate PDF-417 barcodes in C#.NET Class?

The following C# .NET code illustrates how to generate a PDF-417 barcode in C# class:

using KeepDynamic.Barcode.Generator;

// Create PDF417 barcode object in C#
PDF417 barcode = new PDF417();

// Set PDF-417 barcode value in C#
barcode.CodeText = "PDF417 in C#";

// Set PDF-417 drawing image format to PNG in C#
barcode.Format = ImageFormat.Png;

// Generate PDF-417 barcode & encode to the png image in C#
barcode.drawBarcode("C://barcode-pdf417-csharp.png");
  
// Generate PDF-417 barcode & print to System.Drawing.Graphics object in C#
barcode.drawBarcode("Graphics object");
 
// Create PDF-417 barcode & draw to System.IO.Stream object in C#
barcode.drawBarcode("Stream object");




How to generate PDF-417 barcodes in VB.NET Class?

The following VB.NET code illustrates how to generate PDF-417 barcodes in VB.NET class:

// Create PDF417 barcode object in VB.NET
Dim barcode As KeepDynamic.Barcode.Generator.PDF417
barcode = New KeepDynamic.Barcode.Generator.PDF417()

// Set PDF-417 barcode value in VB.NET
barcode.CodeText = "PDF417 in VB.NET"

// Set PDF-417 drawing image format to PNG in VB.NET
barcode.Format = ImageFormat.Png

// Generate PDF-417 barcode & encode to the png image in VB.NET
barcode.drawBarcode("C://barcode-pdf417-vbnet.png")
  
// Generate PDF-417 barcode & print to System.Drawing.Graphics object in VB.NET
barcode.drawBarcode("Graphics object")
 
// Create PDF-417 barcode & draw to System.IO.Stream object in VB.NET
barcode.drawBarcode("Stream object")


Creating PDF-417 barcodes using .NET Barcode Generator Windows Form Control

To create PDF-417 barcodes in Windows Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.Windows.dll to your C#, VB.NET project reference

  • Add KeepDynamic.BarCode.Windows.dll to windows project toolbox

  • Drag the PDF417Control item to your windows forms


Creating PDF-417 barcodes using ASP.NET Barcode Generator ASP.NET Web Form Control

To create PDF-417 barcodes in ASP.NET Web Forms applications, do the following procedures:

  • Add KeepDynamic.BarCode.AspNet.dll to your C#, VB.NET project reference

  • Add KeepDynamic.BarCode.AspNet.dll to windows project toolbox

  • Drag the PDF417Control item to your ASP.NET Web form pages, in your ASP.NET design view


.NET PDF-417 Barcodes Properties

Class Properties HTTP Parameters Default Comments
CodeText code-text "" Barcode value to encode
GraphicsUnit graphics-unit GraphicsUnit.Pixel Unit of meature for all size related settings. Default is pixel
X x 1 Width of barcode module (narrow bar), default is 1 pixel
XtoYRatio x-y-ratio 3 bar height, bar width ratio
LeftMargin left-margin 0 Barcode image left margin
RightMargin right-margin 0 Barcode image right margin
TopMargin top-margin 0 Barcode image top margin
BottomMargin bottom-margin 0 Barcode image bottom margin
Resolution resolution 72 Barcode image resolution in dpi
Rotate rotate 0 Barcode rotate angle, valid values: 0, 90, 180, 270
Format format ImageFormat.Png Image format type. Using System.Drawing.Imaging.ImageFormat
ProcessTilde process-tilde false Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is false.
~NNN: is used to represent the ASCII character with the value of NNN. NNN is from 000 - 255.
DataMode data-mode PDF417DataMode.Text PDF-417 data mode
ECL ecl PDF417ECL.ECL_2 PDF-417 Error correction level, values are from 0 to 8, default is PDF417ECL.ECL_2 (2).
RowCount row-count 3 The number of rows for PDF417. The value range is from 3 to 90. The default is 3.
ColumnCount column-count 5 Number of columns. The value range is from 1 to 30. The default is 5. Increase this value, if your data size is large.
Truncated truncated false truncated PDF417 may be used where space considerations are a primary concern and symbol damage is unlikely.
Macro macro false Set Macro property to true, then Macro PDF417 is enabled.
MacroSegmentIndex macro-segment-index 0 the position of current symbol in the secuence (Start with 0).
MacroSegmentCount macro-segment-count 0 the number of total symbols which make the sequence.
MacroFileIndex macro-file-index 0 be identified to the same file





.NET Barcode Generator supports most common linear (1d) and matrix (2d) bar code standards, including:

2D Barcodes Code-39 related Code-128 related Code-25 related EAN/UPC related Other Linear Barcodes
Data Matrix

PDF-417

QR-Code

Code-39

Code-93

Code-128

GS1-128/UCC/EAN-128
Code 2 of 5

Interleaved 2 of 5

ITF-14

Identcode

Leitcode

EAN-8

EAN-13

ISBN

ISSN

UPC-A

UPC-E
Codabar

Code-11

POSTNET

PLANET

USPS Intelligent Mail Barcode (OneCode)

RM4SCC

MSI Plessey