32 private static $_allowedKeys = array(
'Size',
'Prev',
'Root',
'Encrypt',
'Info',
'ID',
'Index',
'W',
'XRefStm',
'DocChecksum');
47 private function _checkDictKey($key)
49 if ( !in_array($key, self::$_allowedKeys) ) {
51 #require_once 'Zend/Pdf/Exception.php'; 66 foreach ($this->_dict->getKeys() as $dictKey) {
67 $this->_checkDictKey($dictKey);
77 public function __get($property)
79 return $this->_dict->$property;
90 $this->_checkDictKey($property);
91 $this->_dict->$property =
$value;
101 return "trailer\n" . $this->_dict->toString() .
"\n";
__construct(Zend_Pdf_Element_Dictionary $dict)