Example #1
0
 public function preRender(Core_Pdf_Page $page, $posX, $posY, $inContentArea = true)
 {
     foreach ($this->_cols as $col) {
         //set default font
         if (!$col->getFont()) {
             $col->setFont($this->_font, $this->_fontSize);
         }
         //set default borders if not set
         foreach ($this->_border as $pos => $style) {
             if (!$col->getBorder($pos)) {
                 $col->setBorder($pos, $style);
             }
         }
         if (!$col->getAlignment()) {
             $col->setAlignment($this->_align);
         }
     }
     parent::preRender($page, $posX, $posY);
 }
Example #2
0
 /**
  * Replace specific Row in Table
  *
  * @param Core_Pdf_Table_Row $row
  * @param int $index
  */
 public function replaceRow(Core_Pdf_Table_Row $row, $index)
 {
     if (!$this->_autoWidth) {
         $row->setWidth($this->_width);
     }
     $this->_rows[$index] = $row;
 }