Exemplo n.º 1
0
 /**
  * Object constructor
  *
  * @param \ZendPdf\InternalType\DictionaryObject $dictionary
  * @param SplObjectStorage      $processedActions  list of already processed action dictionaries,
  *                                                 used to avoid cyclic references
  * @throws \ZendPdf\Exception\ExceptionInterface
  */
 public function __construct(InternalType\AbstractTypeObject $dictionary, \SplObjectStorage $processedActions)
 {
     parent::__construct($dictionary, $processedActions);
     if ($dictionary->URI === null) {
         throw new Exception\CorruptedPdfException('URI action dictionary entry is required');
     }
 }
Exemplo n.º 2
0
 /**
  * Object constructor
  *
  * @param \ZendPdf\InternalType\DictionaryObject $dictionary
  * @param SplObjectStorage    $processedActions  list of already processed action dictionaries,
  *                                               used to avoid cyclic references
  */
 public function __construct(InternalType\AbstractTypeObject $dictionary, \SplObjectStorage $processedActions)
 {
     parent::__construct($dictionary, $processedActions);
     $this->_destination = Destination\AbstractDestination::load($dictionary->D);
 }