note 22082 added to function.pdf-add-weblink
| From: | js at justnet dot com dot au | Date: | Thu, 06 Jun 2002 01:22:53 +0000 |
| Subject: | note 22082 added to function.pdf-add-weblink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31512@lists.php.net to get a copy of this message | ||
The example given in the above comment is potentially confusing, since the 4th and 5th arguments
appear to be the width and height of the link area, but are actually the coordinates of the
diagonally opposite corner. This is much more evident when the starting point for the weblink is
something other than 0,0 (which is of course very likely).
A better example:
$starting_xpos = 100;
$starting_ypos = 150;
pdf_add_weblink($pdf, $starting_xpos, $starting_ypos, $starting_xpos + $width, $starting_ypos +
$height, "http://goweb.com.au/");
--
http://www.php.net/manual/en/function.pdf-add-weblink.php
http://master.php.net/manage/user-notes.php?action=edit+22082
http://master.php.net/manage/user-notes.php?action=delete+22082
http://master.php.net/manage/user-notes.php?action=reject+22082