- Posted by Admin on April 9, 2009
To create a PDF file from any .net application is very easy. You just need to use itextsharp component. You can download this component http://itextsharp.sourceforge.net
Just import this component namespace to your application. Here is the sample code.
Dim doc as New Document
PdfWriter.GetInstance(doc,New FileStream("Sample.pdf",FileMode.Create))
doc.Open()
doc.Add(New Paragraph(" Add the contects",FontFactory.GetFont(FontFactory.TIMES ROMAN,22,iTextSharp.text.Font.BOLD)))
doc.close()