public function copyPage() { $copy = new Core_Pdf_Page($this); $copy->setFont($this->getFont(), $this->getFontSize()); $copy->setMargins($this->getMargins()); $copy->setPaddings($this->getPaddings()); return $copy; }
/** * Add Page to this Document * * @param Core_Pdf_Page $page */ public function addPage(Core_Pdf_Page $page) { //add pages with new pages (page breaks) if ($pages = $page->getPages()) { foreach ($pages as $p) { $p->setMargins($this->_margin); $this->pages[] = $p; } } else { $page->setMargins($this->_margin); $this->pages[] = $page; } }