ByteScout PDF SDK - VB.NET - Convert HTML to PDF - ByteScout

ByteScout PDF SDK – VB.NET – Convert HTML to PDF

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF SDK – VB.NET – Convert HTML to PDF

How to convert HTML to PDF in VB.NET using ByteScout PDF SDK

Write code in VB.NET to convert HTML to PDF with this step-by-step tutorial

The sample source codes on this page shows how to convert HTML to PDF in VB.NET. Want to convert HTML to PDF in your VB.NET app? ByteScout PDF SDK is designed for it. ByteScout PDF SDK is the pdf library that can create, update and modify PDF files. Supports text with fonts and style selections, layers, form fields, drawing lines and objects, automatic tables, images. Can be used to create and fill pdf forms.

You will save a lot of time on writing and testing code as you may just take the VB.NET code from ByteScout PDF SDK for convert HTML to PDF below and use it in your 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! Detailed tutorials and documentation are available along with installed ByteScout PDF SDK if you’d like to dive deeper into the topic and the details of the API.

Free trial version of ByteScout PDF SDK is available on our website. Documentation and source code samples are included.

Try ByteScout PDF SDK today: Get 60 Day Free Trial or sign up for Web API

Module1.vb
      
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

Try ByteScout PDF SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout PDF SDK page

Explore ByteScout PDF SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next