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