HaruPage::createURLAnnotation

(PECL haru:0.0.1)

HaruPage::createURLAnnotation — Create and return new HaruAnnotation instance

Описание

object HaruPage::createURLAnnotation ( array $rectangle , string $url )

Creates a new HaruAnnotation instance.

Список параметров

rectangle

An array with 4 coordinates of the clickable area.

url

The URL to open.

Возвращаемые значения

Returns a new HaruAnnotation instance.

Errors/Exceptions

Throws HaruException on error.

Коментарии

Автор:
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
2009-07-30 11:01:44
http://php5.kiev.ua/manual/ru/function.harupage-createurlannotation.html
By default createURLAnnotation will create a cell with a solid border around it.  This is controlled by the haruAnnotation object returned by the method.  Create a reference to the haruAnnotation object and alter the border style to remove the solid border.

<?php
$haruAnotation 
$currentHaruPage->createURLAnnotation(Array($leftX,$bottomY,$rightX,$topY),'http://'.$dataItem);
$haruAnotation->setBorderStyle(000); // this alters the border
?>
2011-07-13 18:05:02
http://php5.kiev.ua/manual/ru/function.harupage-createurlannotation.html

    Поддержать сайт на родительском проекте КГБ