Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
Create Invoice PDF from HTML | VB.NET
Module1.vb:
VB
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