Ejemplo n.º 1
0
 /**
  * Get next generation number for free object
  *
  * @param integer $objNum
  * @return unknown
  */
 public function getNewGeneration($objNum)
 {
     if (isset($this->_usedObjects[$objNum])) {
         throw new Zend_Pdf_Exception('Object is not free');
     }
     if (isset($this->_generations[$objNum])) {
         return $this->_generations[$objNum];
     }
     if (isset($this->_parent)) {
         return $this->_parent->getNewGeneration($objNum);
     }
     throw new Zend_Pdf_Exception('Object not found.');
 }
Ejemplo n.º 2
0
 /**
  * Get next generation number for free object
  *
  * @param integer $objNum
  * @return unknown
  */
 public function getNewGeneration($objNum)
 {
     if (isset($this->_usedObjects[$objNum])) {
         // require_once 'Zend/Pdf/Exception.php';
         throw new Zend_Pdf_Exception('Object is not free');
     }
     if (isset($this->_generations[$objNum])) {
         return $this->_generations[$objNum];
     }
     if (isset($this->_parent)) {
         return $this->_parent->getNewGeneration($objNum);
     }
     // require_once 'Zend/Pdf/Exception.php';
     throw new Zend_Pdf_Exception('Object not found.');
 }