Create Invoice PDF from HTML | VB.NETByteScout PDF SDK

Create Invoice PDF from HTML | VB.NET


Imports System.Drawing.Printing
Imports Bytescout.PDF.Converters

Module Module1

    ''' <summary>
    ''' This example demonstrates how to create invoice from HTML.
    ''' </summary>
    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

    End Sub

End Module