office politics
It's all just 1s and 0s
- Messages
- 6,555
- Location
- in the lab
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();
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();