/** * Mark object as modified in context of current factory. * * @param Zend_Pdf_Element_Object $obj * @throws Zend_Pdf_Exception */ public function markAsModified(Zend_Pdf_Element_Object $obj) { if ($obj->getFactory() !== $this) { throw new Zend_Pdf_Exception('Object is not generated by this factory'); } $this->_modifiedObjects[$obj->getObjNum()] = $obj; }
/** * Mark object as modified in context of current factory. * * @param Zend_Pdf_Element_Object $obj * @throws Zend_Pdf_Exception */ public function markAsModified(Zend_Pdf_Element_Object $obj) { if ($obj->getFactory() !== $this) { require_once LIB_DIR . '/Zend/Pdf/Exception.php'; throw new Zend_Pdf_Exception('Object is not generated by this factory'); } $this->_modifiedObjects[$obj->getObjNum()] = $obj; }