24 #require_once 'Zend/Pdf/Element.php'; 25 #require_once 'Zend/Pdf/Element/Array.php'; 26 #require_once 'Zend/Pdf/Element/Dictionary.php'; 27 #require_once 'Zend/Pdf/Element/Name.php'; 28 #require_once 'Zend/Pdf/Element/Numeric.php'; 32 #require_once 'Zend/Pdf/Annotation.php'; 56 #require_once 'Zend/Pdf/Exception.php'; 57 throw new Zend_Pdf_Exception(
'Annotation dictionary resource has to be a dictionary.');
60 if ($annotationDictionary->Subtype ===
null ||
62 $annotationDictionary->Subtype->value !=
'Link') {
63 #require_once 'Zend/Pdf/Exception.php'; 67 parent::__construct($annotationDictionary);
84 #require_once 'Zend/Pdf/Destination/Named.php'; 88 #require_once 'Zend/Pdf/Exception.php'; 89 throw new Zend_Pdf_Exception(
'$target parameter must be a Zend_Pdf_Target object or a string.');
102 $annotationDictionary->Rect = $rectangle;
105 $annotationDictionary->Dest =
$target->getResource();
107 $annotationDictionary->A =
$target->getResource();
122 #require_once 'Zend/Pdf/Destination/Named.php'; 126 #require_once 'Zend/Pdf/Exception.php'; 127 throw new Zend_Pdf_Exception(
'$target parameter must be a Zend_Pdf_Target object or a string.');
130 $this->_annotationDictionary->touch();
131 $this->_annotationDictionary->Dest = $destination->getResource();
133 $this->_annotationDictionary->Dest =
$target->getResource();
134 $this->_annotationDictionary->A =
null;
136 $this->_annotationDictionary->Dest =
null;
137 $this->_annotationDictionary->A =
$target->getResource();
150 if ($this->_annotationDictionary->Dest ===
null &&
151 $this->_annotationDictionary->A ===
null) {
155 if ($this->_annotationDictionary->Dest !==
null) {
156 #require_once 'Zend/Pdf/Destination.php'; 159 #require_once 'Zend/Pdf/Action.php';
__construct(Zend_Pdf_Element $annotationDictionary)
static create($x1, $y1, $x2, $y2, $target)
static load(Zend_Pdf_Element $resource)
static load(Zend_Pdf_Element $dictionary, SplObjectStorage $processedActions=null)