Computers |
|
| | #1 (permalink) |
| Dope Tech | Create PDF Files on fly in C# - iText for C#.net Author intexture iText for C#.net Reference - > itextsharp.sourceforge.net ; http://www.lowagie.com/iText/ 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();
__________________ Tech IMO.com | ExtremeTech.com | ASP Free.com | SysOpt.com | Tech Support Guy.org DB Forums.com | Cyber Tech Help.com | Lazy Forums.com | Warrior Nation.net 'If you don't stand for somethin you'll fall for anything' - Dr. Dre Been there, done that |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |