QR code is a type of matrix barcode (or two-dimensional barcode). It is used to save diverse kinds of data, contains contact details, email addresses and website links, among other type of information that creator would wish to include.

.NET PDF QRCode creator allows developer to create & render scannable barcode images, and insert them in to PDF document. Developer can customize the size, position, orientation, bar color and background color of QR codes.

Developers can make QR Code and print the barcode in PDF easily by using this C# PDF qr-code generator library. Please see the following C# guide.

// Create a new PDF document.
PdfDocument document = new PdfDocument();

// Create a page.
PdfPage page = document.AddPage();

// Get graphics object from pdf page
XGraphics g = XGraphics.FromPdfPage(page);

// Create a pdf barcode object
PdfBarcode barcode = new PdfBarcode();

// Set the barcode type to qrcode symbol
barcode.BarType = BarCodeType.QRCode;

// Input the barcode data content
barcode.Data = "xspdf123456789";

// Change foreground and background color of barcode
barcode.BarcodeColor = XColors.Black;
barcode.BackgroundColor = XColors.White;

// Set qrcode error correction level
barcode.QRCodeECL = ErrorCorrectionLevelMode.L;

// Set the barcode Position and location
barcode.Location = new XPoint(100, 100);

// Set the barcode width and height
barcode.Size = new XSize(200, 200);


// Save and show the document           

More PDF tutorial