How to Generate PDF-417 in C# Application

How to Generate 2D PDF-417 Barcode Images Using Visual C# in .NET Applications
  • Completely written in C#.NET with full integration into .NET development environments
  • Generate PDF-417 barcode in ASP.NET, WinForms, Class & Console, Crystal Reports & RDLC Reports
  • Generate PDF-417 images in stream & graphics object and support png, jpeg, gif, tiff & bmp image formats
  • Offer flexible PDF-417 barcode dimension options to select, like width, height, color, orientation, resolution, etc
  • Support PDF-417 Column Count, PDF-417 Row Count, PDF-417 Truncation and Error Correction Level properties
  • Create PDF-417 barcode images with C# sample code compatible with latest PDF-417 encoding specifications
C# PDF-417 Barcode Control Summary
KeepAutomation barcode encoder for .NET is a versatile barcoding component SDK API for developers to easily generate & integrate PDF-417 and other linear & 2D barcode symbologies in .NET projects with C# progamming. What's more, a variety of barcoding features are available for users to adjust the generated barcode images, such as row count, column count, width, height, orientation, etc.
What Is A PDF-417 Barcode
PDF417, also named Portable Data File 417, PDF 417, PDF417 Truncated, is a stacked bi-dimensional barcode symbol used mainly in transport, inventory management and identification cards.
PDF-417 Barcode Creation in ASP.NET Using C#
This barcode encoder control SDK library provides three methods to stream PDF-417 in ASP.NET: barcode control drag-and-drop in ASP.NET websites, Visual C# Class Library and Microsoft IIS. Installation is quite simple as you only need to add this library to reference or Toolbox. For detailed guide, click here: How to print barcode in Visual C# with ASP.NET web control.
PDF-417 Barcode Generation in .NET WinForms Using C#
To paint and draw PDf-417 barcode images in .NET Windows Forms applications, you can add control to Toolbox and drag & drop it for direct PDF-417 image generation. Or you can add the barcode library to reference and generate PDF-417 with Visual C# Class Library / Console Application. Here is a detailed guide: How to create barcode in .NET WinForms with Visual C#.
PDF-417 Barcode Making in Crystal Reports Using C#
This barcode generator for .NET Suite can also support PDF-417 2D barcode generation in Crystal Report. Users can convert columns of data into multiple PDF-417 barcode images with just a few clicks. Detailed tutorial are given with C#.NET sample code. Click here to view more: How to create barcode in Crystal Reports with Visual C#.
PDF-417 Barcode Adding in RDLC Reports Using C#
.NET Barcode Generator SDK Library supports creating PDF-417 barcode images in Visual Studio 2005 / 2008 / 2010 Report Viewer RDL reports (RDLC Local Report), which can accurately convert columns of data into multiple PDf-417 barcode images with simple steps. Refer to: How to create barcode in RDLC Reports with C# code.
PDF-417 Barcode Generation in .NET Applications with C#
Below is Visual C# demo code for you to generate PDF-417 barcode images in C# Class Library. You may make necessary adjustment according to your target barcode properties. Make sure you have added reference to this barcode control at first.
C# Sample code
     BarCode pdf417 = new BarCode();
pdf417.Symbology = KeepAutomation.Barcode.Symbology.PDF417;

pdf417.PDF417RowCount = 3;
pdf417.PDF417ColumnCount = 5;
// Set PDF 417 encoding valid input: All ASCII characters. Length: variable.
pdf417.CodeToEncode = "PDF417";

//Select a data format for PDF-417 according to your data:
//Auto: automatic data format selection according to your data
//Text: each codeword represents one or two characters.
//Byte: each group of 5 codewords represents 6 bytes.
//Numeric: groups of up to 15 codewords represent as many as 44 decimal digits.
pdf417.PDF417DataMode = PDF417DataMode.Auto;
// Set PDF 417 image size

// Unit of measure, pixel, cm and inch supported.
pdf417.BarcodeUnit = BarcodeUnit.Pixel;
// PDF 417 image resolution in dpi
pdf417.DPI = 72;
// PDF 417 bar module width (X Dimension)
pdf417.X = 3;
// PDF 417 bar width vs bar height
pdf417.PDF417XtoYRatio = 0.3f;

// PDF 417 image left margin size, minimum value is 2X.
pdf417.LeftMargin = 6;
pdf417.RightMargin = 6;
pdf417.TopMargin = 6;
pdf417.BottomMargin = 6;
// PDF417 image orientation, 90, 180, 270 degrees supported.
pdf417.Orientation = KeepAutomation.Barcode.Orientation.Degree0;

// PDF417 image format, support png, jpeg, gif, tiff, bmp, etc.
pdf417.ImageFormat = ImageFormat.Png;

// PDF417 Error Correction Level, 0-8 supported..
pdf417.PDF417ECL = PDF417ECL.ECL_1;

// Generate PDF 417 barcodes in image format BMP

/* Create PDF-417 barcodes in Stream object
pdf417.generateBarcodeToStream(".NET System.IO.Stream Object");

Draw & Print PDF-417 barcodes to Graphics object
pdf417.generateBarcodeToGraphics(".NET System.Drawing.Graphics Object");

Generate PDF-417 barcodes & write to byte[]
byte[] barcodeInBytes = pdf417.generateBarcodeToByteArray();

Generate PDF-417 barcodes & encode to System.Drawing.Bitmap object
Bitmap barcodeInBitmap = pdf417.generateBarcodeToBitmap();
C# - Web PDF417C# - Windows PDF417C# - Crystal PDF417C# - RDLC PDF417C# - PDF417Using C#Using VB.NETData Matrix for C#QR Code for C#moreCodabar for C#Code 39 for C#Code 128 for C#EAN-8 for C#EAN-13 for C#EAN 128 for C#Intelligent Mail for C#Interleaved 2 of 5 for C#ISBN for C#ITF-14 for C#RM4SCC for C#UPC-A for C#UPC-E for C#more
KeepAutomation provides complete barcode automation solutions for add barcode display 2-dimensional, barcode generation capacity api, and barcode mobile applications. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# merge PDF files, Split PDF in C#, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from