Re: jpg to pdf using fpdf
| From: | nicolas figaro | Date: | Wed, 26 Jul 2006 13:43:48 +0000 |
| Subject: | Re: jpg to pdf using fpdf | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239812@lists.php.net to get a copy of this message | ||
Peter Lauri a écrit :
This is code how it works for me: $pdf =& new FPDF('p','pt','a4'); $pdf->AddPage(); $pdf->Image("pdf/profilechart.png",145,$pdf->GetY()); $pdf->Output("pdf/temp/thepdf.pdf",'F'); Add the $pdf->AddPage(); and it might work :) addpage did the trick.thanks peter. next question : how to set the pdf size to the size of the image ? :) N F