24 #require_once 'Zend/Pdf/Element.php'; 66 $this->_annotationDictionary->Rect->items[1]->touch();
67 $this->_annotationDictionary->Rect->items[1]->value = $bottom;
78 return $this->_annotationDictionary->Rect->items[1]->value;
88 $this->_annotationDictionary->Rect->items[3]->touch();
89 $this->_annotationDictionary->Rect->items[3]->value = $top;
100 return $this->_annotationDictionary->Rect->items[3]->value;
110 $this->_annotationDictionary->Rect->items[2]->touch();
111 $this->_annotationDictionary->Rect->items[2]->value = $right;
122 return $this->_annotationDictionary->Rect->items[2]->value;
132 $this->_annotationDictionary->Rect->items[0]->touch();
133 $this->_annotationDictionary->Rect->items[0]->value = $left;
144 return $this->_annotationDictionary->Rect->items[0]->value;
155 if ($this->_annotationDictionary->Contents ===
null) {
159 return $this->_annotationDictionary->Contents->value;
171 #require_once 'Zend/Pdf/Element/String.php'; 173 if ($this->_annotationDictionary->Contents ===
null) {
174 $this->_annotationDictionary->touch();
177 $this->_annotationDictionary->Contents->touch();
192 #require_once 'Zend/Pdf/Exception.php'; 193 throw new Zend_Pdf_Exception(
'Annotation dictionary resource has to be a dictionary.');
196 $this->_annotationDictionary = $annotationDictionary;
198 if ($this->_annotationDictionary->Type !==
null &&
199 $this->_annotationDictionary->Type->value !=
'Annot') {
200 #require_once 'Zend/Pdf/Exception.php'; 204 if ($this->_annotationDictionary->Rect ===
null) {
205 #require_once 'Zend/Pdf/Exception.php'; 209 if (count($this->_annotationDictionary->Rect->items) != 4 ||
214 #require_once 'Zend/Pdf/Exception.php'; 215 throw new Zend_Pdf_Exception(
'\'Rect\
' dictionary entry must be an array of four numeric elements.');
__construct(Zend_Pdf_Element $annotationDictionary)
static load(Zend_Pdf_Element $resource)