Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
A file attachment annotation contains a reference to a file, which typically is embedded in the PDF file.
An annotation associates an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard.

__construct(
$annotationDictionary
)
:
void
Annotation object constructor
Name | Type | Description |
---|---|---|
$annotationDictionary |
Exception | Description |
---|---|
\Zend_Pdf_Exception |

create(
float $x1, float $y1, float $x2, float $y2, string $fileSpecification
)
:
\Zend_Pdf_Annotation_FileAttachment
Create link annotation object
Name | Type | Description |
---|---|---|
$x1 | float | |
$y1 | float | |
$x2 | float | |
$y2 | float | |
$fileSpecification | string |
Type | Description |
---|---|
\Zend_Pdf_Annotation_FileAttachment |

getBottom(
)
:
float
Get bottom edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::getBottom()Type | Description |
---|---|
float |

getLeft(
)
:
float
Get left edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::getLeft()Type | Description |
---|---|
float |

getRight(
)
:
float
Get right edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::getRight()Type | Description |
---|---|
float |

getText(
)
:
string
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.
Inherited from: \Zend_Pdf_Annotation::getText()Type | Description |
---|---|
string |

getTop(
)
:
float
Get top edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::getTop()Type | Description |
---|---|
float |

setBottom(
float $bottom
)
:
\Zend_Pdf_Annotation
Set bottom edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::setBottom()
setLeft(
float $left
)
:
\Zend_Pdf_Annotation
Set left edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::setLeft()
setRight(
float $right
)
:
\Zend_Pdf_Annotation
Set right edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::setRight()
setText(
string $text
)
:
\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.
Inherited from: \Zend_Pdf_Annotation::setText()
setTop(
float $top
)
:
\Zend_Pdf_Annotation
Set top edge of the annotation rectangle.
Inherited from: \Zend_Pdf_Annotation::setTop()