|
Search Tech-Forums - link takes you to our Forum's search page. Note: The following is only a text archive! To view the actual forum discussion, please visit our website at http://www.tech-forums.net Pages:1 Create PDF Files on fly in C# - iText for C#.net(Click here to view the original thread with full colors/images)Posted by: office politics [url=http://www.developerfusion.co.uk/show/5682/]Create PDF Files on fly in C# - iText for C#.net[/url] Author intexture iText for C#.net Reference - > itextsharp.sourceforge.net ; [url]http://www.lowagie.com/iText/[/url] Creation of PDF Document in 5 easy steps Step 1: First create an instance of document object Document myDocument= new Document(PageSize.A4.Rotate()); Step 2: Now create a writer that listens to this doucment and writes the document to desired Stream. PdfWriter.GetInstance(myDocument, new FileStream("Salman.pdf", FileMode.Create)); Step 3: Open the document now using myDocument.Open(); Step 4: Now add some contents to the document myDocument.add( new Paragraph ( "First Pdf File made by Salman using iText")); Step 5: Remember to close the documnet myDocument.close(); vBulletin Copyright ©2000 - 2003, Jelsoft Enterprises Limited. PPC Management vB Easy Archive Final - Created by Xenon |