CodeIgniter Forums
Problem in generating pdf through plugin.... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem in generating pdf through plugin.... (/showthread.php?tid=20109)



Problem in generating pdf through plugin.... - El Forum - 06-28-2009

[eluser]zombica[/eluser]
Hey Guys I am generating PDF through plugin and i got the following issue.

In my controller function i have passed my sql data to view file and stored it in $html variable
like this : $html = $this->load->view('pdf', $data, true);

in the next line i have called the function :
pdf_create($html, 'myfile');

but a strange issue is coming over that it loads my view file and displays all sql data but it doesn't comes into the pdf_create() function.

Os something i am missing.

Here is my controller function......

function pdf($cid)
{
$this->load->plugin('to_pdf');
$this->load->helper('typography');

$data['pageTitle'] = 'Case Detail';

$caseInfo = $this->casemodel->get_single_case($cid);
$data['singlecaseView'] = $this->casemodel->get_single_case($cid);
$data['row'] = $this->casemodel->get_single_case($cid);

$html = $this->load->view('pdf', $data, true);
pdf_create($html, 'myfile');

}


Problem in generating pdf through plugin.... - El Forum - 06-28-2009

[eluser]zombica[/eluser]
Hey Guys does PDF generation plugin support for CI given by Derek Allard...
Does not support tables,tr,td. Do i have to use only the paragraph, headings, li or some thing like this.


Problem in generating pdf through plugin.... - El Forum - 06-29-2009

[eluser]Thorpe Obazee[/eluser]
[quote author="zombica" date="1246271919"]Hey Guys does PDF generation plugin support for CI given by Derek Allard...
Does not support tables,tr,td. Do i have to use only the paragraph, headings, li or some thing like this.[/quote]

Please no double posting...http://ellislab.com/forums/viewthread/121520/