public function close()
{
// Terminate document
if ($this->_page == 0) {
$this->addPage();
}
// Page footer
$this->_in_footer = true;
$this->x = $this->_left_margin;
$this->footer();
$this->_in_footer = false;
// Close page and document
$this->_endPage();
$this->_endDoc();
}