barcodelib.com Home

View More Information about BarcodeLib.com Barcode for .NET, ASP.NET



PDF417 Barcode for .NET, ASP.NET

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

Quick Navigate
  1. Barcode Introduction
  2. Basic Characteristics
  3. Encoding Data Scope
  4. How to Generate Barcode Image in IIS without Visual Studio .NET?
  5. How to Generate Barcode Image through Web Controller in ASP.NET?
  6. How to Generate Barcode Image through Windows Controller in .NET?
  7. How to Generate Barcode Image in .NET class?
  8. How to Save Barcode Image?
  9. Barcode Property Settings
For trial version only, we will randomly print message BarcodeLib.com or Trial on the generated barcode image.
1. Barcode Introduction
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.
2. Basic Characteristics
PDF417 is a bar code symbology with the following basic characteristics:
  1. 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.
  2. 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).
  3. 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).
  4. 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.
  5. Selectable error correction: 2 to 512 codewords per symbol
  6. Non-data overhead:
    1. Per row: 73 modules, including quiet zones.
    2. Per symbol: a minimum of 3 codewords, represented as symbol characters.
  7. Code type: continuous, multi-row two-dimensional.
  8. Character self-checking: Yes.
  9. Bi-directionally decodable: Yes.
3. Encoding Data Scope
PDF417 Barcode for .NET, ASP.NET supports:
4. How to Generate Barcode Image in IIS without Visual Studio .NET?
  1. Copy folder barcode from your downloaded package, to your IIS folder, e.g. C:\Inetpub.
  2. Create a new virtual directory, named barcode.
  3. Restart IIS.
  4. Test your installation, goto http://YourDomain:port/barcode/pdf417.aspx?Data=123450
  5. 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" />
5. How to Generate Barcode Image through Web Controller in ASP.NET?
  1. Integrate Barcode Controller to your ASP.NET project.
    1. Copy BarcodeLib.Barcode.dll to the folder bin of your web application the barcodes are needed for.
    2. Copy pdf417.aspx file to your web application.
  2. Add barcode library to your Visual Studio Toolbox.
    1. Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox.
    2. Right click Toolbox, click menu Choose Items...
    3. Goto .NET Framework Components tab.
    4. Check component PDF417WebForm, and its namespace is BarcodeLib.Barcode.PDF417
    5. If no component found, click Browse... button and select BarcodeLib.Barcode.dll file.
  3. Now you can see the component displayed on Toolbox. You can drag PDF417WebForm on your aspx page, change barcode setting through properties window.
6. How to Generate Barcode Image through Windows Controller in .NET?
  1. 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.
    1. In your .NET windows project, right click mouse over Refereces in your Solution Explorer window. Then click menu "Add Reference ...".
    2. Add BarcodeLib.Barcode.dll to your project.
  2. Add barcode library to your Visual Studio Toolbox.
    1. Open Toolbox in Visual Studio. Click menu View, and check submenu Toolbox.
    2. Right click Toolbox, click menu Choose Items...
    3. Goto .NET Framework Components tab.
    4. Check component PDF417WinForm, and its namespace is BarcodeLib.Barcode.PDF417
    5. If no component found, click Browse... button and select BarcodeLib.Barcode.dll file.
  3. Now you can see the component displayed on Toolbox. You can drag PDF417WinForm on your form, change barcode setting through properties widnow.
7. How to Generate Barcode Image in .NET class?
  1. 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");

* Please set properties UOB and Resolution, before you set any image size related properties like BarWidth, LeftMargin.
8. How to Save Barcode Image?
In Windows Controller, just call method SaveAsImage(string filename). e.g. SaveAsImage("C:\barcode.gif");
9. Barcode Property Settings