• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pdf creation

#1
[eluser]diasansley[/eluser]
i have tried the following to generate a pdf document the codes are

controller home.php


Code:
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();

}



view
Code:
<p>&lt;?=anchor('home/hello_world/', 'showpdf');?&gt;</p>

it says page not found.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.