Re: How to center image in PDF (fpdf) using Image() in PHP....
| From: | Scott Fletcher | Date: | Fri, 03 Oct 2003 20:16:30 +0000 |
| Subject: | Re: How to center image in PDF (fpdf) using Image() in PHP.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164973@lists.php.net to get a copy of this message | ||
Yea, saw that in the source code, with further analysis, haven't gotten
around to something like this...
"Marek Kilimajer" <kilimajer@webglobe.sk> wrote in message
news:3F7DD81E.4010102@webglobe.sk...
> 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 paramenters are being used inside this function but what
I
> > found instead is that the X,Y coordinate is specified only from the
> > upper-left corner. So, the question is how do I know what is the total
> > width of a page in PDF, so I can whip up a php code to give me the
center
> > code of an image and enter it into the Image() function.
> >
> > The document showed...
> >
> > --snip--
> > Image(string file, float x, float y, float w [, float h [, string type
[,
> > mixed link]]])
> > --snip--
> >
> > Thanks...
> > Scott F.
> >