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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to