A link annotation represents either a hypertext link to a destination elsewhere in the document or an action to be performed.

Only destinations are used now since only GoTo action can be created by user in current implementation.

package Zend_Pdf
subpackage Annotation
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Pdf_Annotation

 Methods

Annotation object constructor

__construct(\Zend_Pdf_Element $annotationDictionary) 
inherited_from \Zend_Pdf_Annotation::__construct()

Parameters

$annotationDictionary

Exceptions

\Zend_Pdf_Exception

Annotation object constructor

__construct(\Zend_Pdf_Element $annotationDictionary) 
Inherited

Parameters

$annotationDictionary

Exceptions

\Zend_Pdf_Exception

Create link annotation object

create(float $x1, float $y1, float $x2, float $y2, \Zend_Pdf_Target|string $target) : \Zend_Pdf_Annotation_Link
Static

Parameters

$x1

float

$y1

float

$x2

float

$y2

float

$target

\Zend_Pdf_Targetstring

Exceptions

\Zend_Pdf_Exception

Returns

\Zend_Pdf_Annotation_Link

Get bottom edge of the annotation rectangle.

getBottom() : float
Inherited

Returns

float

Get link annotation destination

getDestination() : \Zend_Pdf_Target | null

Returns

\Zend_Pdf_Targetnull

Get left edge of the annotation rectangle.

getLeft() : float
Inherited

Returns

float

Get right edge of the annotation rectangle.

getRight() : float
Inherited

Returns

float

Return text to be displayed for the annotation or, if this type of annotation does not display text, an alternate description of the annotation’s contents in human-readable form.

getText() : string
Inherited

Returns

string

Get top edge of the annotation rectangle.

getTop() : float
Inherited

Returns

float

Set bottom edge of the annotation rectangle.

setBottom(float $bottom) : \Zend_Pdf_Annotation
Inherited

Parameters

$bottom

float

Returns

\Zend_Pdf_Annotation

Set link annotation destination

setDestination(\Zend_Pdf_Target|string $target) : \Zend_Pdf_Annotation_Link

Parameters

$target

\Zend_Pdf_Targetstring

Returns

\Zend_Pdf_Annotation_Link

Set left edge of the annotation rectangle.

setLeft(float $left) : \Zend_Pdf_Annotation
Inherited

Parameters

$left

float

Returns

\Zend_Pdf_Annotation

Set right edge of the annotation rectangle.

setRight(float $right) : \Zend_Pdf_Annotation
Inherited

Parameters

$right

float

Returns

\Zend_Pdf_Annotation

Set text to be displayed for the annotation or, if this type of annotation does not display text, an alternate description of the annotation’s contents in human-readable form.

setText(string $text) : \Zend_Pdf_Annotation
Inherited

Parameters

$text

string

Returns

\Zend_Pdf_Annotation

Set top edge of the annotation rectangle.

setTop(float $top) : \Zend_Pdf_Annotation
Inherited

Parameters

$top

float

Returns

\Zend_Pdf_Annotation

 Properties

 

Annotation dictionary

$_annotationDictionary : \Zend_Pdf_Element_Dictionary | \Zend_Pdf_Element_Object | \Zend_Pdf_Element_Reference

Default