Add barcode to PDF is easy to implement in VB.NET if you use these source codes below. ByteScout Barcode SDK: the fully featured library to generate barcodes. Supports QR Code, Code 39, Code 128, UPC, GS1, GS-128, PDF417, Datamatrix and many other barcode types. Includes various options for barcode generation to ensure output quality, add barcodes to new or existing pdf files and images. It can add barcode to PDF in VB.NET.
This rich sample source code in VB.NET for ByteScout Barcode SDK includes the number of functions and options you should do calling the API to add barcode to PDF. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Detailed tutorials and documentation are available along with installed ByteScout Barcode SDK if you’d like to dive deeper into the topic and the details of the API.
Our website provides trial version of ByteScout Barcode SDK for free. It also includes documentation and source code samples.
Imports Bytescout.BarCode Class Program Friend Shared Sub Main() ' Create new barcode and register it. Dim barcode As New Barcode() barcode.RegistrationName = "demo" barcode.RegistrationKey = "demo" ' Set symbology barcode.Symbology = SymbologyType.DataMatrix ' Set value barcode.Value = "Sample barcode" ' Place barcode at top-right corner of every document page barcode.DrawToPDF("wikipedia.pdf", -1, 500, 50, "result.pdf") ' Open output file in default PDF viewer System.Diagnostics.Process.Start("result.pdf") End Sub End Class