Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 /**
  * 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;
     }
 }