creating PDF. How to get the xpositioni of a text?
| From: | Andy | Date: | Mon, 18 Feb 2002 11:35:47 +0000 |
| Subject: | creating PDF. How to get the xpositioni of a text? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85177@lists.php.net to get a copy of this message | ||
Hi there,
I would like to create a pdf file and place a heading in the center of the
page.
pdf_get_value should do the job, but it does not work out. Does anybody know
how to get
this thing working?
Thanx for help
ANdy
Code:
pdf_set_font($dokument, "Times-Roman", 35, "winansi");
$heading_width = pdf_get_value($dokument,textx, $country[0]);
#echo $heading_width.'test';
pdf_show_xy($dokument,$country[0], ($page_height - $heading_widht) /2 ,
700);