HTML to PDF conversion using iTextsharp
The following code snippet demonstrates how to convert a html file into PDF format using iText library in VB.NET. [VB.NET CODE STARTS] First we need to add reference to iTextSharp library. ‘ Add references Imports System.IO Imports iTextSharp.text Imports iTextSharp.text.pdf ‘ Read html file to a string Dim sr As StreamReader = New StreamReader(“YOUR HTML […]