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 — Crea una nueva instancia de HaruAnnotation
Descripción
object HaruPage::createURLAnnotation
( array $rectangle
, string $url
)
Crea una nueva instancia de HaruAnnotation.
Parámetros
- rectangle
-
Un arreglo con 4 coordenadas del área clickeable.
- url
-
La URL para abrir.
Valores devueltos
Devuelve una nueva instancia de HaruAnnotation.
Errores/Excepciones
Lanza una HaruException cuando se produce un error.
Kore
30-Jul-2009 08:01
