.NET PDF Barcode Generator SDK

Generate Barcode on PDF in C#
How to generate a barcode and add barcode image to PDF document page? How to create and generate QR Code barcode on PDF file for C# .NET application development? How to create and generate linear barcodes Code 128, Code 39, EAN-13, UPC-A, and more 1d barcodes on PDF document? If you have these questions for C# PDF barcodes generating & drawing, CnetSDK .NET PDF Barcode Generator SDK can help you. And you will see C# sample codes for generating QR Code on PDF and generating Code 39 on PDF on this page.
C# PDF BARCODE GENERATOR: THINGS SHOULD KNOW
All mature and high print quality C# PDF barcodes generating and drawing features are compiled into an independent .NET PDF barcode generator library dll. This PDF barcode generator library dll enables C# programmers to create, generate, and draw multiple 1D and 2D bar codes on PDF document page, like drawing QR Code, PDF-417, Data Matrix, Code 3 of 9, Code 128, EAN/UPC barcodes on PDF document. No other .NET PDF libraries or barcode generator library components are required for your C# application development.

Guess you have already downloaded CnetSDK .NET PDF Barcode Generator SDK online. To use this mature .NET PDF barcode generator library in Visual C# programming, you are supposed to add and integrate CnetSDK.PDFBarcode.Generator.Trial.dll to your C# .NET project reference firstly.

Please Note: a watermark ("CnetSDK") will be shown on each created barcode image randomly if you are using free trial library dll.    
C# PDF BARCODE GENERATOR: 1D BARCODE ON PDF
CnetSDK .NET PDF Barcode Generator SDK is used to create and generate most commonly used linear/1d barcodes on PDF document in C# programming, including creating Code 39, Code 128, EAN-13, and UPC-A. And here, we take C# PDF Code 39 barcode generating and drawing as an example to illustrate how to  create, generate, and draw linear barcode on PDF file page in C# programming project using .NET PDF barcode generator library dll.
using System;
using CnetSDK.PDFBarcode.Generator.Trial;
 
namespace CsharpPDFCode39Generator
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create a PDF file and get graphics object from its page.
            PdfFile PDFBarcodeGenerator = new PdfFile();
            PdfFilePage SamplePage = PDFBarcodeGenerator.CreatePage();
            CSImage SampleGraphics = CSImage.FromFilePage(SamplePage);
 
            // Create a barcode object and set its type as Code 39.
            CSBarcodeOnPdf Code39 = new CSBarcodeOnPdf();
            Code39.BarcodeType = CSBarcodeType.Code39;
 
            // Customize Code 39 barcode properties.
            Code39.BarcodeData = "000111222333";
            Code39.BarColor = CSColor.Black;
            Code39.BackgroundColor = CSColor.White;
            Code39.BarcodeSize = new CSSize(180, 60);
            Code39.DisplayText = true;
 
            // Set Code 39 location on PDF document page.
            Code39.BarcodeLocation = new CSPoint(80, 80);
            Code39.CreateBarcode(SampleGraphics);
 
            // Save and show PDF document.        
            PDFBarcodeGenerator.Save("CnetSDKSample.pdf");
            Process.Start("CnetSDKSample.pdf");
        }
    }
}
C# PDF BARCODE GENERATOR: 2D BARCODE ON PDF
Besides C# linear Code 39 generating and drawing on PDF file, CnetSDK .NET PDF Barcode Generator SDK also supports making and generating popular 2d barcodes on PDF document, like making 2d Aztec Code, Data Matrix, PDF-417, and QR Code bar code. And the following C# sample code illustrates how to use .NET PDF barcode generator library dll to make and generate QR Code on PDF file.
using System;
using CnetSDK.PDFBarcode.Generator.Trial;
 
namespace CsharpPDFQRCodeGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create a PDF and get graphics object from its page.
            PdfFile PDFBarcodeGenerator = new PdfFile();
            PdfFilePage SamplePage = PDFBarcodeGenerator.CreatePage();
            CSImage SampleGraphics = CSImage.FromFilePage(SamplePage);
 
            // Create a barcode object and set its type as QR Code.
            CSBarcodeOnPdf QRCode = new CSBarcodeOnPdf();
            QRCode.BarcodeType = CSBarcodeType.QRCode;
 
            // Customize QR Code barcode properties.
            QRCode.BarcodeData = "CnetSDKPDFQRCode0123";
            QRCode.BarColor = CSColor.Black;
            QRCode.BackgroundColor = CSColor.White;
            QRCode.QRCodeErrorCorrectionLevel = ECLMode.L;
            QRCode.BarcodeSize = new CSSize(280, 280);
 
            // Set QR Code location on PDF file page.
            QRCode.BarcodeLocation = new CSPoint(160, 160);
            QRCode.CreateBarcode(SampleGraphics);
 
            // Save and show PDF file.        
            PDFBarcodeGenerator.Save("CnetSDKSample.pdf");
            Process.Start("CnetSDKSample.pdf");
        }
    }
}    
DRAW BARCODES ON PDF
CnetSDK .NET PDF Barcode Generator SDK provides C# sample codes for all supported linear and 2d bar codes generation on PDF document. You can download free trial of C#.NET PDF barcode generator online. And then, use C# demo codes to test PDF barcodes generation & drawing features in your Visual Studio C# .NET projects. Linear and 2d barcodes properties can be customized in your C# projects. Here, we also provide online tutorial for VB.NET programmes, please see VB.NET demo codes for PDF barcode generation.

C#: Draw QR Code on PDF

C#: Draw Data Matrix on PDF

C#: Draw PDF 417 on PDF

C#: Draw Aztec Code on PDF

C#: Draw Code 39 on PDF

C#: Draw Code 128 on PDF

C#: Draw EAN-13 on PDF

C#: Draw UPC-A on PDF