On this page you will learn from code samples for programming in VB.NET.Writing of the code to convert html to pdf with pdf sdk in VB.NET can be executed by programmers of any level using ByteScout Premium Suite. Want to convert html to pdf with pdf sdk in your VB.NET app? ByteScout Premium Suite is designed for it. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.
The following code snippet for ByteScout Premium Suite works best when you need to quickly convert html to pdf with pdf sdk in your VB.NET application. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Want to see how it works with your data then code testing will allow the function to be tested and work properly.
The trial version of ByteScout Premium 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