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

Create A PDF To Show Document In Table Format Using C#

Posted on November 23rd, 2015 by Ashabari Jena

I was trying to create a pdf document which should show document in table format in C#. So at first I added iTextSharp library to my application. Then three namespaces: using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html;   Then added code: Document doc = new Document(PageSize.A4); PdfWriter.GetInstance(doc,newFileStream(“/hello.pdf”,FileMode.Create)); doc.Open();     Then tried to add table to […]

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