The following code snippet for ByteScout PDF Suite works best when you need to quickly convert html to pdf with pdf sdk in your VB.NET application. 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! Use of ByteScout PDF Suite in VB.NET is also described in the documentation included along with the product.
The trial version of ByteScout PDF Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.
Imports System.Drawing.Printing Imports Bytescout.PDF.Converters Module Module1 <STAThread> Sub Main() Using converter As New HtmlToPdfConverter() converter.PageSize = PaperKind.A4 converter.Orientation = PaperOrientation.Portrait converter.Footer = "FOOTER TEXT" ' optional footer text converter.ConvertHtmlToPdf("sample.html", "result.pdf") ' You can also pass a link instead of the input file: 'converter.ConvertHtmlToPdf("http://google.com", "result.pdf") End Using ' Open result file in default PDF viewer Process.Start("result.pdf") End Sub End Module