Create PDF417 barcode in C#

Pdf417 barcode can be created using DynamicBarcode Creator. Pdf417 can also be created in a PDF using Generator product.

How to create PDF417 barcode in C#

Below are the steps and sample code to create PDF417 barcode using DynamicBarcode Creator product.

Steps for creating PDF417 barcode

  1. Create Pdf417 with text.
  2. Draw the barcode to a BMP image.

Sample Code - C#

Pdf417 barcode = new Pdf417("Hello World",3);
barcode.Draw(@"C:\pdf417.bmp", 300, ImageFormat.Bmp);

How to create MacroPdf417 barcode in C#

Below are the steps and sample code to create MacroPdf417 barcode using DynamicBarcode Creator product.

Steps for creating MacroPdf417 barcode

  1. Create MacroPdf417 with text.
  2. Draw the barcode to a BMP image.

Sample Code - C#

MacroPdf417 barcode = new MacroPdf417("Hello World",3,3);
barcode.Draw(pngFilePath, 300, ImageFormat.Png);   

How to add PDF417 to a PDF using DynamicPDF Generator (C#)

Below are steps and sample code to add PDF417 barcode to a PDF document using the DynamicPDF Generator product.

Steps for Creating a PDF Document using Generator

  1. Create Document object.
  2. Create a Page object and add it to the document.
  3. Create a Pdf417 object and set the necessay parameters.
  4. Add the Pdf417 to Page.
  5. Save the PDF Document.

Sample code - C#

Document document = new Document();
Page page = new Page();
document.Pages.Add( page );
Pdf417 pdf417 = new Pdf417( "Pdf417 barcode", 10.0f, 10.0f, 2, 2.0f );
page.Elements.Add( pdf417 );
document.Draw(outputPath);

How to add MacroPdf417 to a PDF using DynamicPDF Generator (C#)

Below are steps and sample code to add MacroPdf417 barcode to a PDF document using the DynamicPDF Generator product.

Steps for adding Macro PDF417 to a PDF Document using Generator

  1. Create Document object.
  2. Create a Page object and add it to the document.
  3. Create a MacroPdf417 object and set the necessay parameters.
  4. Add the MacroPdf417 to Page.
  5. Save the PDF Document.

Sample code - C#

Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
MacroPdf417 macroPdf417 = new MacroPdf417("MacroPdf417 barcode", 10.0f, 10.0f, 3, 2.0f);
page.Elements.Add(macroPdf417);
document.Draw(outputPath);

Getting Started

NuGet Package

DynamicPDF Generator is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET package. The Core Suite package includes Generator, Merger and ReportWriter.

Nuget Logo
NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET

DynamicBarcode Creator is available on NuGet and is part of the ceTe.DynamicBarcode.Creator.NET package.

Nuget Logo
NuGet Package ID: ceTe.DynamicBarcode.Creator.NET

DynamicBarcode Creator Library is available for WPF is part of the ceTe.DynamicBarcode.Creator.WPF package.

Nuget Logo
NuGet Package ID: ceTe.DynamicBarcode.Creator.WPF

Example Project

An example project showing this functionality can be cloned or viewed from GitHub:

GitHub Logo
Clone or View Example Project on GitHub

DynamicPDF Information

More information can be found here:

Available in other platforms

DynamicPDF Generator is available for the following platforms. Refer to the respective product pages for more details.

Why Choose DynamicPDF?

  • Transparent Pricing
  • Lots of Features
  • Easy to Use
  • Great Support
  • Efficient Performance
  • Product Maturity (Over 18 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

We’re Not The Only Ones That Think We’re Great!