Quickly learn how to add barcode to pdf with barcode sdk in VB.NET with this sample source code. ByteScout Barcode Suite is the set that includes three different SDK products to generate barcodes, read barcodes and read and write spreadsheets: Barcode SDK, Barcode Reader SDK and Spreadsheet SDK. It can add barcode to pdf with barcode sdk in VB.NET.
The following code snippet for ByteScout Barcode Suite works best when you need to quickly add barcode to pdf with barcode sdk in your VB.NET application. Simply copy and paste in your VB.NET project or application you and then run your app! Complete and detailed tutorials and documentation are available along with installed ByteScout Barcode Suite if you’d like to learn more about the topic and the details of the API.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
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