.NET Barcode for (.NET Barcode Generator supports Linear, PDF417, Data Matrix and QR-Code)

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

 

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

Create & Generate PDF-417 Barcodes in C#, VB.NET, ASP.NET

PDF-417 is a stacked linear bar code symbol used in a variety of applications, primarily transport, identification cards, and inventory management. PDF stands for Portable Data File. The PDF417 symbology was invented by Dr. Ynjiun P. Wang at Symbol Technologies in 1991.

.NET PDF417 prints:

  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.



.NET Barcode PDF-417 Generator - C#, VB.NET PDF-417 Generating Sample Code



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

   using BusinessRefinery.Barcode;

   // construct a PDF417 barcode object
   PDF417 barcode = new PDF417();  
    
   // set PDF-417 code text to encode		      
   barcode.Code = "PDF-417 in C#";  
    
   //draw barcode and save PDF-417 into image file in gif format   
   barcode.drawBarcode2ImageFile("pdf417-in-csharp.gif");    

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

// construct a PDF417 barcode object
Dim barcode As BusinessRefinery.Barcode.PDF417
barcode = New BusinessRefinery.Barcode.PDF417()

// set PDF-417 code text to encode	
barcode.Code = "PDF-417 in VB.NET"

//draw barcode and save PDF-417 into image file in gif format  
barcode.drawBarcode2ImageFile("pdf417-in-vbnet.gif")


3. How to draw PDF-417 barcodes to image files (GIF, JPEG, BMP, PNG, & TIFF)?

            using BusinessRefinery.Barcode;

            PDF417 barcode = new PDF417();
            barcode.Code = "C# PDF-417 Generator";
            barcode.drawBarcode2ImageFile("pdf417-in-csharp.gif");

You can draw other file formats, by change file types to .jpg, .bmp, .png, and .tif.



4. How to draw & print PDF-417 barcodes to .NET objects like Graphics, Stream, Bitmap?

            using BusinessRefinery.Barcode;

            PDF417 barcode = new PDF417();
            barcode.Code = "Create PDF417 in C#";

            barcode.drawBarcode2Stream("Stream object");

            Bitmap barcodeInBitmap = barcode.drawBarcodeOnBitmap();

            barcode.drawBarcodeOnGraphics("Graphics object");



5. How to create PDF-417 barcodes in C# or VB.NET Windows Application using .NET Barcode Generator Windows Control Library?

  1. add BusinessRefinery.Barcode.Win.dll to your .NET Windows Application project reference

  2. add .NET Barcode Generator .NET Windows Control Library to .NET Visual Studio Toolbox



6. How to create PDF-417 barcodes in ASP.NET Web Application using ASP.NET Barcode Generator Web Control Library?

  1. add BusinessRefinery.Barcode.Web.dll to your ASP.NET project reference

  2. add ASP.NET Barcode Generator ASP.NET Web Control Library to .NET Visual Studio Toolbox





.NET Barcode PDF-417 Generator - PDF-417 Property Settings



Basic

  • Code : PDF-417 encoding data value.

    HTTP Parameter: code; Default Value: ""

  • DataMode : PDF-417 encoding data mode.

    HTTP Parameter: data-mode; Default Value: 1 (MODE_TEXT)

  • ECL : PDF-417 error correction level

    HTTP Parameter: ecl; Default Value: 2 (ECL_2)

  • RowCount

    HTTP Parameter: row-count; Default Value: 3

  • ColumnCount

    HTTP Parameter: column-count; Default Value: 5

  • Truncated

    HTTP Parameter: truncated; Default Value: false

Barcode Size

  • BarcodeUnit : Unit of meature for all size related properties. 0: Pixel (default); 1: CM; 2: Inch.

    HTTP Parameter: barcode-unit; Default Value: 0 (UOM_PIXEL)

  • BarWidth : bar module width (X), default is 1 pixel

    HTTP Parameter: bar-width; Default Value: 1.0f

  • BarRatio : bar module height vs bar module width ratio

    HTTP Parameter: bar-ratio; Default Value: 3

  • LeftMargin : generated barcode image left margin

    HTTP Parameter: left-margin; Default Value: 0.0f

  • RightMargin : generated barcode image right margin

    HTTP Parameter: right-margin; Default Value: 0.0f

  • TopMargin : generated barcode image top margin

    HTTP Parameter: top-margin; Default Value: 0.0f

  • BottomMargin : generated barcode image bottom margin

    HTTP Parameter: bottom-margin; Default Value: 0.0f

  • Resolution : generated data matrix image resolution in dpi

    HTTP Parameter: resolution; Default Value: 72 dpi

  • Rotate : barcode data matrix rotate angle, valid values: 0 (ROTATE_0), 1 (ROTATE_90), 2 (ROTATE_180), 3 (ROTATE_270)

    HTTP Parameter: rotate; Default Value: 0 (ANGLE_0)

  • BarcodeWidth

    HTTP Parameter: barcode-width; Default Value: 0

  • BarcodeHeight

    HTTP Parameter: barcode-height; Default Value: 0



Macro PDF-417

  • Macro

    HTTP Parameter: macro; Default Value: false

  • MacroSegmentIndex

    HTTP Parameter: macro-segment-index; Default Value: 0

  • MacroSegmentCount

    HTTP Parameter: macro-segment-count; Default Value: 0

  • MacroFileIndex

    HTTP Parameter: macro-file-index; Default Value: 0







ALL RIGHTS RESERVED. Business Refinery (c) 2006 - 2010. Terms of Use | Privacy Policy