PDF documents are the now a days is standard in Documents Exchange over the internet, as these documents are more or less platform independent and can be viewed on virtually any platform without any formatting or changes in the file structure.
PDF documents consist mainly of four parts:
- header
- document body
- the cross reference
- the trailer
The header is the version information like %PDF-1.1 which says that this is PDF version 1.1 the PDF viewer looking at the version determines the file version and the functionality associated with this version.
The document bodies are constructed with PDF objects like text, images, page, pages and catalog.
The cross reference entries are the heart of the PDF document, all PDF objects has their reference in the PDF xRef.
The trailer has the information of the ROOT node and Size or count of all the PDF objects.
The present C# application will generates the basic structure of the PDF file and show how you can program to generate PDF application other than using PDFWriter or Adobe Software.
Deepak MoghekarPosted Aug 20, 2011, 10:50 AM
i am facing the same problem if the text is in multiple lines, it dosent work. it writes alll the text in same line.did you find any solution to this? if yes please share with me.
Gary ErrichettiPosted Mar 8, 2011, 2:06 PM
Pramod, Thanks for the useful code.... what if I want to break up the string line like this: Pramod Singh IT Dept. more data here is there some way to do this here: strPDFMessage = "(Pramod Singh)Tj\n"; when I try to use \n\r line break nothing writes... what does the Tj\n do? when I take that out same thing. I would appreciate any input you have. Regards, Gary
ibrahim ibrahimPosted Mar 3, 2010, 12:30 PM
thank you.
aaaPosted Aug 4, 2009, 11:55 PM
Nice article.... I have a Q. How you can generate tables (<tr><td>) using your code. Regards
kanishka dasPosted Sep 17, 2008, 12:59 AM
Thank u very much for helping me Kanishka Das [email protected]