We are in a project for a client and this project needs to implement html to pdf conversion, vb.net programming language is required. So, the issue is how to take an HTML and convert it to a PDF in a VB.Net program.
As searched, there are a lot of 3rd party converter libraries around that do that, but typically, they’re expensive and not reliable as expected. So, we want to make sure whether XsPDF converter SDK can do so. We found an online guide on XsPDF.com which is Convert HTML to PDF in C#. As we required, our project compiled in VB.Net. So, please help!
Answers
As known to all, .NET Framework does not provide any means with which you can create a PDF file through VB.Net code.That means you cannot achieve html to pdf conversion without some external library. And i chose XsPDF library for .NET, it can directly convert input HTML to output PDF with VB.Net.
Thank you for your interest in our SDK. XsPDF .NET HTML to PDF SDK can easily save and convert web URL and raw HTML string to PDF document, preserving the original content and style. So, it is the solution that meet all your requirements. Our products are competitive and affordable in the market.
It’s quite easy to use our SDK in VB.Net project. Simply add project reference to XsPDF html to pdf converter library. And then, see the following sample code. If you have additional questions or requests, please contact us via .
Dim html As String = "sample.html" Dim savePath As String = "sample.pdf" ' Create a Html converter instance Dim converter As HtmlToPdfConverter = New HtmlToPdfConverter() ' Set output PDF size converter.PageSize = PageSize.A4 ' Convert html to PDF converter.ConvertFromFile(html, savePath)