You are here: Re: FPDF « PHP Programming Language « IT news, forums, messages
Re: FPDF

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация