Beispiel #1
0
 public function render(Am_Pdf_Page_Decorator $page, $x, $y)
 {
     $this->width = $this->width ? $this->width : $page->getWidth() - $x;
     $rowNum = 1;
     foreach ($this->getRows() as $row) {
         $row->setTable($this);
         $row->setWidth($this->width - $this->getMargin(self::LEFT) - $this->getMargin(self::RIGHT));
         $row->addStyle($this->getStyleForRow($rowNum));
         $row->render($page, $x + $this->getMargin(self::LEFT), $y - $this->getMargin(self::TOP));
         $y = $y - $row->getHeight($page);
         $rowNum++;
     }
     return $y;
 }