Like shown in the source code [1] the array defining the rectangle should look like:
<?php
$rect = array(
$bottomLeftXCoordinate,
$bottomLeftYCoordinate,
$topRightXCoordinate,
$topRightYCoordinate,
);
?>
As always these values have to be given in "pt" (point, 72dpi).
[1] http://cvs.php.net/viewvc.cgi/pecl/haru/haru.c?view=markup#l701
HaruPage::createURLAnnotation
(PECL haru >= 0.0.1)
HaruPage::createURLAnnotation — Crée une nouvelle instance HaruAnnotation instance
Description
object HaruPage::createURLAnnotation
( array $rectangle
, string $url
)
Crée une nouvelle instance HaruAnnotation.
Liste de paramètres
- rectangle
-
Un tableau contenant 4 coordonnées de zone cliquable.
- url
-
L'URL à ouvrir.
Valeurs de retour
Retourne une nouvelle instance de la classe HaruAnnotation.
Erreurs / Exceptions
Émet une exception HaruException en cas d'erreur.
HaruPage::createURLAnnotation
Kore
30-Jul-2009 08:01
30-Jul-2009 08:01
