How to create a PDF files |
[eluser]Techno Heart[/eluser]
I have doubt in creating PDF file using code igniter.i have doubt in 1.Generate graph in pdf file. 2.create single pdf for multiple files.
[eluser]mk3[/eluser]
Actually Codeigniter can do everything you can do with pure PHP, If you need some pluses no need to rewrite basic functionality, integrated formvalidation also huge amount of third party libraries etc. For PDF part have you tried searching forums/wiki? there are many posts which relating to pdf creation: one of them here for example: http://ellislab.com/forums/viewthread/121287/ it may not be what you are looking for but making research before asking questions should be the way ![]()
[eluser]Techno Heart[/eluser]
i do research dude.i saw wiki forums.there it was not shown how to create pdf using multiple files.
[eluser]mk3[/eluser]
PDF creation is usually third party library so at first find a library which suits your needs, and then integrate into Codeigniter. Can you explain more clearly make pdf from multiple files?
[eluser]Techno Heart[/eluser]
function hello_world() .{ $this->load->library('cezpdf'); $this->cezpdf->ezText('Hello World', 12, array('justification' => 'center')); $this->cezpdf->ezSetDy(-10); $content = 'The quick, brown fox jumps over a lazy dog. DJs flock by when MTV ax quiz prog. Junk MTV quiz graced by fox whelps. Bawds jog, flick quartz, vex nymphs.'; $this->cezpdf->ezText($content, 10); $this->cezpdf->ezStream(); } the above example is from codeigniter forum. here u can see they are creating pdf using a library called 'cezpf'. $content text will be created in pdf in this function.if i want to include some extenal file along with this $content what i have to do..? got it.?
[eluser]mk3[/eluser]
We can start from here: http://www.ros.co.nz/pdf/ this is home page for ezpdf. Here is documentation: http://www.ros.co.nz/pdf/readme.pdf and here is function name for including images into PDF file: Code: ezImage(image,[padding],[width],[resize],[justification],[array border]) As I said do your research.
[eluser]Clooner[/eluser]
http://codeigniter.com/wiki/PDF_generati...ng_dompdf/
[eluser]Ivar89[/eluser]
@Anbarasu It's easier for people to help you if you put your code between code tags([code ][/code ]) its just better.
[eluser]Techno Heart[/eluser]
Thank u for ur suggsstion friend.I think the PDF help link u sent will be useful for me.Thank you friend.
[eluser]Sumon[/eluser]
I have a question in my mind. Considering anything you use for generate pdf, if i have 5 pages total of 50 paragraphs at some pages last line split horizontally and the text gets messy. i mean, half portion of last line of a page in one page another half portion in next page. how to fix this problem? |
Welcome Guest, Not a member yet? Register Sign In |