This prolific sample source code in VB.NET for ByteScout PDF Suite contains various functions and other necessary options you should do calling the API to create invoice pdf from html with pdf sdk. 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! Further improvement of the code will make it more robust.
You can download free trial version of ByteScout PDF Suite from our website to see and try many others source code samples for VB.NET.
Imports System.Drawing.Printing Imports Bytescout.PDF.Converters Module Module1 ''' <summary> ''' This example demonstrates how to create invoice from HTML. ''' </summary> <STAThread> Sub Main() Using converter As New HtmlToPdfConverter() converter.PageSize = PaperKind.Letter converter.Orientation = PaperOrientation.Portrait ' Convert input HTML to output pdf converter.ConvertHtmlToPdf("invoice.html", "result.pdf") End Using ' Open result file in default PDF viewer Process.Start("result.pdf") End Sub End Module