downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

HaruPage::curveTo2> <HaruPage::createTextAnnotation
[edit] Last updated: Fri, 14 Jun 2013

view this page in

HaruPage::createURLAnnotation

(PECL haru >= 0.0.1)

HaruPage::createURLAnnotationCré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.



add a note add a note User Contributed Notes HaruPage::createURLAnnotation - [2 notes]
up
0
266073 at gmail dot com
1 year ago
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(0, 0, 0); // this alters the border
?>
up
0
Kore
3 years ago
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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites