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.
PDF417 is a bar code symbology with the following basic characteristics:
Encodable character set:
Text Compaction mode permits all printable ASCII characters to be encoded, i.e. values 32 - 126 inclusive in accordance with ISO/IEC 646 (IRV), as well as selected control characters.
Byte Compaction mode permits all 256 possible 8-bit byte values to be encoded. This
includes all ASCII characters value 0 to 127 inclusive and provides for international character set
support.
Numeric Compaction mode permits efficient encoding of numeric data strings.
Up to 811 800 different character sets or data interpretations.
Various function codewords for control purposes.
Symbol character structure: (n, k, m) characters of 17 modules (n), 4 bar and 4 space elements (k), with
the largest element 6 modules wide (m).
Maximum possible number of data characters per symbol (at error correction level 0): 925 data
codewords which can encode:
Text Compaction mode: 1 850 characters (at 2 data characters per codeword).
Byte Compaction mode: 1 108 characters (at 1,2 data characters per codeword).
Numeric Compaction mode: 2 710 characters (at 2,93 data characters per codeword)
At the minimum recommended error correction level, there is a maximum of 863 data codewords which
can encode:
Text Compaction mode: 1 726 characters (at 2 data characters per codeword).
Byte Compaction mode: 1 033 characters (at 1,2 data characters per codeword).
Numeric Compaction mode: 2 528 characters (at 2,93 data characters per codeword).
Symbol size:
Number of rows: 3 to 90.
Number of columns: 1 to 30.
Width in modules: 90X to 583X including quiet zones.
Maximum codeword capacity: 928 codewords.
Maximum data codeword capacity: 925 codewords.
Since the number of rows and the number of columns are selectable, the aspect ratio of a PDF417 symbol
may be varied when printing to suit the spatial requirements of the application.
Selectable error correction: 2 to 512 codewords per symbol
Non-data overhead:
Per row: 73 modules, including quiet zones.
Per symbol: a minimum of 3 codewords, represented as symbol characters.
Copy folder barcode from your downloaded package, to your IIS folder, e.g. C:\Inetpub.
Create a new virtual directory, named barcode.
Restart IIS.
Test your installation, goto http://YourDomain:port/barcode/pdf417.aspx?Data=123450
To create barcode image in your ASP.NET application, you can pass the url to IMG tag src value.
For example, <img src="http://YourDomain:port/barcode/pdf417.aspx?Data=123450" />
Add Reference BarcodeLib.Barcode.dll to your project. Do not copy the dll to the bin directory, Visual Studio will do so, during project compilation time.
In your .NET windows project, right click mouse over Refereces in your Solution Explorer window. Then click menu "Add Reference ...".
Add BarcodeLib.Barcode.dll to your project.
Add barcode library to your Visual Studio Toolbox.
Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox.
Right click Toolbox, click menu Choose Items...
Goto .NET Framework Components tab.
Check component PDF417WinForm, and its namespace is BarcodeLib.Barcode.PDF417
If no component found, click Browse... button and select BarcodeLib.Barcode.dll file.
Now you can see the component displayed on Toolbox. You can drag PDF417WinForm on your form, change barcode setting through properties widnow.
Add Reference BarcodeLib.Barcode.dll to your .NET project (ASP.NET website, Forms, any .NET project)
In your .NET class.
BarcodeLib.Barcode.PDF417.PDF417 barcode = BarcodeLib.Barcode.PDF417.PDF417();
barcode.Data = "your barcode data";
// other barcode settings.// save barcode image into your system
barcode.drawBarcode("c:/barcode.gif");
Above code written in C# 2005
* Please set properties UOB and Resolution, before you set any image size related properties like BarWidth, LeftMargin.
Set the Data property with the value to encode. Type is string.
Set the BinaryData property with the binary value to encode. Type is byte[]. Once this property value is not null, barcode library will encode this value instead of property Data's value.
Set the Mode property. Default is CompactionMode.Text.
CompactionMode.Binary: It allows encoding all 256 possible 8-bit byte values. This
includes all ASCII characters value from 0 to 127 inclusive and provides for
international character set support
CompactionMode.Text: It allows encoding all printable ASCII characters, i.e. values
from 32 to 126 inclusive in accordance with ISO/IEC 646, as well as selected
control characters such as TAB (horizontal tab ASCII 9), LF (NL line feed, new
line ASCII 10) and CR (carriage return ASCII 13)
CompactionMode.Numeric: It allows encoding numeric data.
Set the ECL property. PDF417 Error Correction Level. Default is ErrorCorrectionLevel.Level_2 (2).
Set the Compact property to true, if you want Compact PDF417.
Default is false. Compact PDF417 may be used where space considerations are a primary concern and symbol damage is unlikely.
Set the ProcessTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default is true.
~NNN: is used to represent the ASCII character with the value of NNN.
Setting up barcode image size:
Set property UOM (Unit of Measure) for properties BarWidth, LeftMargin, RightMargin, TopMargin and BottomMargin.
Default is UnitOfMeasure.Pixel (0). Valid values are UnitOfMeasure.Pixel (0), UnitOfMeasure.CM (1), UnitOfMeasure.Inch (2).
Set the BarWidth (for bar cell width). Type is float, and default is 1.
Set the BarRatio properties. Type is int. Bar cell height = BarWidth * BarRatio.
Set the Rows. Type is int. Valid value is 0 (means auto decided by barcode library), and from 3 to 90. Default is 0.
Set the Columns. Type is int. Valid value is from 1 t0 30. Default is 5.
Set the LeftMargin, RightMargin, TopMargin and BottomMargin properties.
Types are all float. Default are 10.
Set the Resolution property (Value is expressed in DPI - Dots per inch). This property is not working in Windows Controller, we will use end user's windows resultion.
Set the ImageFormat property for barcode image type. Value can be "gif", "jpg", "png", and "bmp", default is "png".
Copyright 2009 BarcodeLib.com.
Provides High Quality
PDF 417 .NET, PDF 417 ASP.NET, PDF417 .NET,
PDF417 ASP.NET, C# PDF 417, PDF417 C#, VB.NET PDF 417.
All rights reserved.