|
Posted by Good Man on 10/09/07 21:30
"Steve" <no.one@example.com> wrote in news:wTROi.114$OQ.5@newsfe03.lga:
> $image = $pdf->image($imagePath . 'tccc.logo.jpg', $pdf->getX(),
> $pdf->getY());
two quick troubleshooting things: try assigning variables for $pdf->getX()
and $pdf->getY() and use the variables, and/or try replacing those entirely
with some numerical coordinates just to make sure its being printed
somewhere.
also, i notice that my scripts specify a fourth parameter (the optional
'image width' specification) numerically... if you leave it out, it is
"automatically calculated" for better or worse. See if it makes a
difference?
I don't know if you can use actual numbers for your class calls, but most
of the PDFs I've generated with FPDF have a specific place for my images,
thus I am able to use numbers all around ie:
$pdf->Image('images/receipt300.png',10,8,200);
.... to sum up, try replacing variables with numbers, and if it prints, then
the variables are wrong...
FPDF sure does require a lot of trial-and-error time!!!!
Navigation:
[Reply to this message]
|