.NET PDF Barcode Generator SDK

Create Barcode on PDF in VB.NET
How to add PDF barcode generation and creation features into your VB.NET windows and web applications? How to make, draw, and create 1D and 2D barcodes on PDF document page in VB.NET programming? Do you try to find a VB.NET PDF barcode generator & creator solution for these issues? If yes, do not miss CnetSDK .NET PDF Barcode Generator SDK. It is an independent .NET PDF barcode generator library that helps to integrate high-quality PDF barcode generation and drawing features into your VB.NET application development.
PDF BARCODE CREATOR IN VB.NET: PLEASE NOTE
Integration of CnetSDK .NET PDF barcode generator and creator library is quite easy, and you only need to add your VB.NET project reference to PDF barcode generator library dll in the download package. And all mature linear and 2D bar codes generation and drawing features are integrated into your VB.NET application. You can quickly make, draw, and create QR Code, Data Matrix, PDF-417, Aztec Code, Code 128, Code 39, EAN/UPC bar codes on PDF file.

The free trial package of CnetSDK .NET PDF Barcode Generator SDK allows VB.NET developers to test and use all compiled PDF barcode creation and drawing features. And there is no time or feature limitation. But, a watermark ("CnetSDK") will be shown on each created PDF barcode image randomly if you are using free trial library dll of CnetSDK .NET PDF Barcode Generator SDK
PDF BARCODE CREATOR IN VB.NET: DRAW 2D BARCODE
To illustrate how to have a quick evaluation of CnetSDK .NET PDF Barcode Generator & Creator library dll features in VB.NET projects, we take a 2D barcode, QR Code, as an example here. VB.NET programmers can directly use the following VB.NET demo code to make, draw, and create 2D barcode QR Code on PDF document page. QR Code bar codes properties can be customized. And VB.NET programmers can place the created QR Code barcode on any location on a specified PDF page.
Imports System
Imports CnetSDK.PDFBarcode.Generator.Trial
Imports CnetSDK.PDFBarcode.Generator.Trial.Pdf
Imports CnetSDK.PDFBarcode.Generator.Trial.Drawing
Imports CnetSDK.PDFBarcode.Generator.Trial.Barcode


Module VBNETPDFQRCodeGenerator
           Sub Main()
            ' Create a PDF and get graphics object from its page.
            Dim PDFBarcodeCreator As PdfFile = New PdfFile()
            Dim SamplePage As PdfFilePage = PDFBarcodeCreator.CreatePage()
            Dim SampleGraphics As CSImage = CSImage.FromFilePage(SamplePage)
 
            ' Create a barcode object and set its type as QR Code barcode.
            Dim QRCode As CSBarcodeOnPdf = New CSBarcodeOnPdf()
            QRCode.BarcodeType = CSBarcodeType.QRCode


            ' Set QR Code 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 document page.
            QRCode.BarcodeLocation = New CSPosition(160, 160)
            QRCode.CreateBarcode(SampleGraphics)


            ' Save and show PDF document.        
            PDFBarcodeCreator.Save("CnetSDKExample.pdf")
            Process.Start("CnetSDKExample.pdf")
        End Sub
End Module
PDF BARCODE CREATOR IN VB.NET: DRAW 1D BARCODE
Guess you may need to make, draw, and create 1D/linear barcodes on PDF document in VB.NET programming. So, we provide VB.NET demo code for linear barcode generation on PDF document below. This piece of VB.NET class code shows how to draw and generate a Code 128 bar code, and then add Code 128 barcode to a PDF document page. To create and generate other 1D/linear barcodes on PDF document in VB.NET projects, you may directly change the barcode type to your target 1D barcode.
Imports System
Imports CnetSDK.PDFBarcode.Generator.Trial
Imports CnetSDK.PDFBarcode.Generator.Trial.Pdf
Imports CnetSDK.PDFBarcode.Generator.Trial.Drawing
Imports CnetSDK.PDFBarcode.Generator.Trial.Barcode
 
Module VBNETPDFCode128Generator
          Sub Main()
            ' Create a PDF and get graphics object from its page.
            Dim PDFBarcodeCreator As PdfFile = New PdfFile()
            Dim SamplePage As PdfFilePage = PDFBarcodeCreator.CreatePage()
            Dim SampleGraphics As CSImage = CSImage.FromFilePage(SamplePage)
 
            ' Create a barcode object and set its type as Code 128.
            Dim Code128 As CSBarcodeOnPdf = New CSBarcodeOnPdf()
            Code128.BarcodeType = CSBarcodeType.Code128
 
            ' Set Code 128 barcode properties.
            Code128.BarcodeData = "012801280128"
            Code128.BarColor = CSColor.Black
            Code128.BackgroundColor = CSColor.White
            Code128.BarcodeSize = New CSSize(180, 60)
            Code128.DisplayText = True
 
            ' Set Code 128 location on PDF file page.
            Code128.BarcodeLocation = New CSPosition(90, 90)
            Code128.CreateBarcode(SampleGraphics)
 
            ' Save and show PDF file.        
            PDFBarcodeCreator.Save("CnetSDKExample.pdf")
            Process.Start("CnetSDKExample.pdf")
        End Sub
End Module    
For C# online tutorial, please see: How to Draw and Generate Barcodes on PDF in C# Programming.
PDF BARCODES SUPPORTED
Besides 2D QR Code and 1D Code 128 barcode types, CnetSDK .NET PDF Barcode Generator SDK also enables .NET, VB.NET programmers to generate and draw other popular linear and 2d bar code types, including Code 39, EAN-13, UPC-A, Aztec Code, Data Matrix, and PDF-417 barcodes. On this VB.NET PDF barcode generating online tutorial, you only see two pieces of VB.NET demo codes. For more PDF barcodes generation demo codes, please directly download PDF barcode generator library free online trial and see more demos in it.

VB.NET: PDF Code 39

VB.NET: PDF Code 128

VB.NET: PDF EAN-13

VB.NET: PDF UPC-A

VB.NET: PDF Aztec Code

VB.NET: PDF QR Code

VB.NET: PDF Data Matrix

VB.NET: PDF PDF-417