function new_page() { $this->_pdf->close_object(); // Add the object to the current page $this->_pdf->add_object($this->_current_page_id, "add"); $this->_pdf->new_page(); Page_Cache::store_page($this->_cache_id, $this->_pdf->get_page_number() - 1, $this->_pdf->serialize_object($this->_current_page_id)); $this->_current_page_id = $this->_pdf->open_object(); return $this->_current_page_id; }