" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

HTML to PDF conversion using iTextsharp

Posted on November 23rd, 2015 by Smruti Sahoo

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 […]