Bakery (http://bakery.cakephp.org/articles/view/creating-pdf-files-
with-cakephp-and-tcpdf), fpdf doesn't work well with 1.2. Thanks for
all your help.
On Mar 25, 6:51 pm, cricket <zijn.digi...@gmail.com> wrote:
> On Mar 25, 11:59 am, butterlamb <cjwilb...@gmail.com> wrote:
>
>
>
> > Thanks! This seemed to work, but now I'm getting this error message,
> > instead of my index page:
>
> > Notice (8): Array to string conversion [APP\vendors\fpdf\fpdf.php,
> > line 127]
>
> > FPDF error: Incorrect orientation: array
>
> > Here's the line the error is citing:
>
> > $orientation=strtolower($orientation);
> > if($orientation=='p' || $orientation=='portrait')
> > {
> > $this->DefOrientation='P';
> > $this->w=$this->DefPageFormat[0];
> > $this->h=$this->DefPageFormat[1];
> > }
> > elseif($orientation=='l' || $orientation=='landscape')
> > {
> > $this->DefOrientation='L';
> > $this->w=$this->DefPageFormat[1];
> > $this->h=$this->DefPageFormat[0];
> > }
>
> That's 13 lines, by my count :-)
>
> Anyway, this looks like nothing to do with Cake. I've used FPDF once,
> and that was a long time ago, so I can't help.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment