Create QRCode in C#

QRCode barcode can be create using the DynamicPDF BarcodeCreator or Generator product.

How to create QRCode in C#

Below are the steps and sample code to create QRCode using DynamicBarcode Creator product. The output image can be used in other applications.

Steps for creating QRCode barcode

  1. Create QRCode with text.
  2. Draw the barcode to a PNG image.

Sample Code - C#

QRCode barcode = new QRCode("Hello World");
barcode.Draw(@"C:\qrcode.png", 300, ImageFormat.Png);

How to add QRCode to PDF in C#

Below are the steps and sample code to add QR Code barcode to a PDF using the Generator product.

Steps for adding QR Code to a PDF

  1. Create a Document object.
  2. Createa a Page object and add it to the document.
  3. Create a QrCode object with all the necessay parameters.
  4. Add the QrCode to the page.
  5. Save the PDF Document.

Sample Code - C#

Document document = new Document();
Page page = new Page();
document.Pages.Add( page );
QrCode qrCode = new QrCode("QR code sample.", 100, 100);

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!