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 — 新しい HaruAnnotation のインスタンスを作成する
説明
object HaruPage::createURLAnnotation
( array $rectangle
, string $url
)
新しい HaruAnnotation のインスタンスを作成します。
パラメータ
- rectangle
-
クリック可能な範囲を表す 4 つの座標の配列。
- url
-
開く URL。
返り値
新しい HaruAnnotation のインスタンスを返します。
エラー / 例外
エラー時に HaruException をスローします。
HaruPage::createURLAnnotation
Kore
30-Jul-2009 08:01
30-Jul-2009 08:01
