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

2003-10-03 Thread Evan Nemerson
A4 is a paper size. IIRC the standard pretty much everywhere but the US. Now, it's been a while since I used FPDF, but taking a quick look at pdfp.php, here are some properties that stand out: var $fw,$fh; //dimensions of page format in user unit var $lMargin;//left margi

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

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: I don't know what is A4 page. Problem is I don't use PDF very, very often so I'm a newbie on PDF It is a sheet of paper with defined size. Some common sizes: mmin widthheghtwidth heght A4 - 209.90 297.04 8.26 11.69 Lette

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

2003-10-03 Thread Scott Fletcher
I don't know what is A4 page. Problem is I don't use PDF very, very often so I'm a newbie on PDF "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Scott Fletcher wrote: > > I would never guess about the ruler to measure the width because it wouldn't > > work that

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

2003-10-03 Thread Marek Kilimajer
Scott Fletcher wrote: 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 actu

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

2003-10-03 Thread Scott Fletcher
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

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

2003-10-03 Thread Marek Kilimajer
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,

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

2003-10-03 Thread Scott Fletcher
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-- "Scott Fletcher" <[EMAIL P

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

2003-10-03 Thread Scott Fletcher
Yea, saw that in the source code, with further analysis, haven't gotten around to something like this... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I don't have the sources at hand, but if I remember the width is stored > in the class variable 'w'. > > Scott Fl

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

2003-10-03 Thread Scott Fletcher
OIC, saw the forum link at that website... Thanks... Scott F. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Where is that forum?? > > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Saturday 04 October 2003 04:03, Scott Fletcher

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

2003-10-03 Thread Marek Kilimajer
I don't have the sources at hand, but if I remember the width is stored in the class variable 'w'. Scott Fletcher wrote: Hi! I tried out the Free PDF Library for creating the PDF at www.fpdf.org and it showed the php function, Image() and I read the documentation on this Image() on what para

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

2003-10-03 Thread Scott Fletcher
Where is that forum?? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 04 October 2003 04:03, Scott Fletcher wrote: > > > I tried out the Free PDF Library for creating the PDF at www.fpdf.org > > and it showed the php function, Image() and I read the docum

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

2003-10-03 Thread Jason Wong
On Saturday 04 October 2003 04:03, Scott Fletcher wrote: > I tried out the Free PDF Library for creating the PDF at www.fpdf.org > and it showed the php function, Image() and I read the documentation on > this Image() on what paramenters are being used inside this function but > what I found i

[PHP] How to center image in PDF (fpdf) using Image() in PHP....

2003-10-03 Thread Scott Fletcher
Hi! I tried out the Free PDF Library for creating the PDF at www.fpdf.org and it showed the php function, Image() and I read the documentation on this Image() on what paramenters are being used inside this function but what I found instead is that the X,Y coordinate is specified only from the