These sample source codes on this page below are displaying how to convert svg to pdf with pdf sdk in VB.NET. What is ByteScout Premium Suite? It is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to convert svg to pdf with pdf sdk in your VB.NET application.
The SDK samples given below describe how to quickly make your application do convert svg to pdf with pdf sdk in VB.NET with the help of ByteScout Premium Suite. Simply copy and paste in your VB.NET project or application you and then run your app! Applying VB.NET application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.
You can download free trial version of ByteScout Premium Suite from our website with this and other source code samples for VB.NET.
Imports System.Drawing.Printing Imports Bytescout.PDF.Converters Module Module1 <STAThread> Sub Main() ' HtmlToPdfConverter can convert HTML files with SVG content, or SVG files directly. Using converter As New HtmlToPdfConverter() converter.PageSize = PaperKind.A4 converter.ConvertHtmlToPdf("drawing.svg", "result.pdf") ' You can also pass a link instead of the input file: 'converter.ConvertHtmlToPdf("http://somesite.com/files/drawing.svg", "result.pdf") End Using ' Open result file in default PDF viewer Process.Start("result.pdf") End Sub End Module