Wednesday, June 29, 2011

Re: FPDF or PDFlib with Cake

two things

1) orienation error is due to you not setting the page as either landscape or portrait.
it seems that it should default to portrait but that message suggests something is wrong - its a fpdf error and you should read the docs for fpdf

2) $this->Fpdf->AddPage() for helpers in cake  1.3 (future proof I think it still works $fpdf->AddPage() but 1.3 migration mentions changing this)


I am not sure which pdf tool I used back then I do know that I tried them all before deciding on the one I used.  That feature of the site has since been removed for other reasons

 - S




On 29 June 2011 20:44, Dominik Gajewski <dominikgajewski1@gmail.com> wrote:
       $fpdf->AddPage();
   $fpdf->SetFont('Arial','B',16);
   $fpdf->Cell(40,10,$data);
   echo $fpdf->fpdfOutput();

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: