|  | Posted by Steve on 10/09/07 21:42 
"Good Man" <heyho@letsgo.com> wrote in message news:Xns99C4B245B874Bsonicyouth@216.196.97.131...
 > "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.
 
 the getX and getY calls were from a suggested post i'd come across with
 someone else having problems with image(). i put in hard coded values but to
 no avail.
 
 
 > 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?
 
 yeah, there's a width and height param that are optional. i've hard coded
 both, either, and none. still blank space.
 
 > 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);
 
 yeah, i've tried that too...very frustrating.
 
 > ... 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!!!!
 
 surprisingly less than what i expected...especially since looking at the
 source, just getting it up to *some* kind of *good* coding style is a
 hurculean task. ;^) anyway, everything i have works with the exception of
 image(). it's my first time to generate pdf's in this way and i'm
 prototyping reporting functions with pdf output.
 
 before, we'd cheat. we had a pdf print driver on the server and just capture
 the normal html and pipe it to the driver to file, and then show/email/etc.
 the file. not an option this time.
 
 anyway, thanks for your help.
  Navigation: [Reply to this message] |