function _putcatalog()
 {
     $this->n_cata = $this->n;
     parent::_putcatalog();
     if (!empty($this->javascript)) {
         $this->_out('/Names <</JavaScript ' . $this->n_js . ' 0 R>>');
     }
     $this->_putuserrights();
 }
 function _putcatalog()
 {
     parent::_putcatalog();
     if (count($this->outlines) > 0) {
         $this->_out('/Outlines ' . $this->OutlineRoot . ' 0 R');
         $this->_out('/PageMode /UseOutlines');
     }
 }