Re: How to center image in PDF (fpdf) using Image() in PHP....

From: Date: Fri, 03 Oct 2003 21:28:40 +0000
Subject: Re: How to center image in PDF (fpdf) using Image() in PHP....
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-164991@lists.php.net to get a copy of this message
I would never guess about the ruler to measure the width because it wouldn't work that way. Why? Because the PDF page can be in any size when I either maximize the Acrobat Reader or use the mouse cursor to make it wider or narrower. This does not help me to measure the actual width of the PDF so that's why the thought of the ruler never came to my mind.... "Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message news:3F7DE56B.3050009@webglobe.sk... > Scott Fletcher wrote: > > Bingo.... Did a lot of searching and found some code and modify it... > > > > --snip-- > > //Logo > > $size="100"; //(min 0, max 210; it's for making image big or small, > > nothing else) > > $absx=(210-$size)/2; > > $this->Image('images/Logo.jpg',$absx,5,$size); > > --snip-- > > Well, you could take a ruler and find out A4 page is 210 milimeters wide > without any PHP knowledge.

« previous php.general (#164991) next »