24 #require_once 'Zend/Pdf/Destination.php'; 26 #require_once 'Zend/Pdf/Element/Dictionary.php'; 27 #require_once 'Zend/Pdf/Element/Name.php'; 31 #require_once 'Zend/Pdf/Action.php'; 59 parent::__construct($dictionary, $processedActions);
70 public static function create($destination)
72 if (is_string($destination)) {
73 #require_once 'Zend/Pdf/Destination/Named.php'; 78 #require_once 'Zend/Pdf/Exception.php'; 79 throw new Zend_Pdf_Exception(
'$destination parameter must be a Zend_Pdf_Destination object or string.');
85 $dictionary->Next =
null;
86 $dictionary->D = $destination->getResource();
99 $this->_destination = $destination;
101 $this->_actionDictionary->touch();
102 $this->_actionDictionary->D = $destination->
getResource();
setDestination(Zend_Pdf_Destination $destination)
static create($destination)
static load(Zend_Pdf_Element $resource)
__construct(Zend_Pdf_Element $dictionary, SplObjectStorage $processedActions)