|
|
@@ -20,7 +20,7 @@
|
|
|
* @version $Id:
|
|
|
*/
|
|
|
|
|
|
-/** Zend_Pdf_ElementFactory */
|
|
|
+/** @see Zend_Pdf_ElementFactory */
|
|
|
require_once 'Zend/Pdf/ElementFactory.php';
|
|
|
|
|
|
|
|
|
@@ -62,88 +62,88 @@ abstract class Zend_Pdf_Annotation
|
|
|
*
|
|
|
* @param float $bottom
|
|
|
* @return Zend_Pdf_Annotation
|
|
|
- */
|
|
|
+ */
|
|
|
public function setBottom($bottom) {
|
|
|
$this->_annotationDictionary->Rect->items[1]->touch();
|
|
|
- $this->_annotationDictionary->Rect->items[1]->value = $bottom;
|
|
|
+ $this->_annotationDictionary->Rect->items[1]->value = $bottom;
|
|
|
|
|
|
return $this;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Get bottom edge of the annotation rectangle.
|
|
|
*
|
|
|
* @return float
|
|
|
- */
|
|
|
- public function getBottom() {
|
|
|
- return $this->_annotationDictionary->Rect->items[1]->value;
|
|
|
- }
|
|
|
+ */
|
|
|
+ public function getBottom() {
|
|
|
+ return $this->_annotationDictionary->Rect->items[1]->value;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Set top edge of the annotation rectangle.
|
|
|
*
|
|
|
* @param float $top
|
|
|
* @return Zend_Pdf_Annotation
|
|
|
- */
|
|
|
- public function setTop($top) {
|
|
|
+ */
|
|
|
+ public function setTop($top) {
|
|
|
$this->_annotationDictionary->Rect->items[3]->touch();
|
|
|
$this->_annotationDictionary->Rect->items[3]->value = $top;
|
|
|
|
|
|
return $this;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Get top edge of the annotation rectangle.
|
|
|
*
|
|
|
* @return float
|
|
|
- */
|
|
|
- public function getTop() {
|
|
|
- return $this->_annotationDictionary->Rect->items[3]->value;
|
|
|
- }
|
|
|
+ */
|
|
|
+ public function getTop() {
|
|
|
+ return $this->_annotationDictionary->Rect->items[3]->value;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Set right edge of the annotation rectangle.
|
|
|
*
|
|
|
* @param float $right
|
|
|
* @return Zend_Pdf_Annotation
|
|
|
- */
|
|
|
- public function setRight($right) {
|
|
|
+ */
|
|
|
+ public function setRight($right) {
|
|
|
$this->_annotationDictionary->Rect->items[2]->touch();
|
|
|
$this->_annotationDictionary->Rect->items[2]->value = $right;
|
|
|
|
|
|
return $this;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Get right edge of the annotation rectangle.
|
|
|
*
|
|
|
* @return float
|
|
|
- */
|
|
|
- public function getRight() {
|
|
|
- return $this->_annotationDictionary->Rect->items[2]->value;
|
|
|
- }
|
|
|
+ */
|
|
|
+ public function getRight() {
|
|
|
+ return $this->_annotationDictionary->Rect->items[2]->value;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Set left edge of the annotation rectangle.
|
|
|
*
|
|
|
* @param float $left
|
|
|
* @return Zend_Pdf_Annotation
|
|
|
- */
|
|
|
- public function setLeft($left) {
|
|
|
+ */
|
|
|
+ public function setLeft($left) {
|
|
|
$this->_annotationDictionary->Rect->items[0]->touch();
|
|
|
$this->_annotationDictionary->Rect->items[0]->value = $left;
|
|
|
|
|
|
- return $this;
|
|
|
- }
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Get left edge of the annotation rectangle.
|
|
|
*
|
|
|
* @return float
|
|
|
- */
|
|
|
- public function getLeft() {
|
|
|
- return $this->_annotationDictionary->Rect->items[0]->value;
|
|
|
- }
|
|
|
+ */
|
|
|
+ public function getLeft() {
|
|
|
+ return $this->_annotationDictionary->Rect->items[0]->value;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* Return text to be displayed for the annotation or, if this type of annotation
|