protected function drawBorder(Am_Pdf_Page_Decorator $page, $x, $y) { $rowHeight = $page->getFont()->getLineHeight() / 100; $shape = $this->getProperty('shape', array('type' => Zend_Pdf_Page::SHAPE_DRAW_STROKE, 'color' => new Zend_Pdf_Color_Html('#cccccc'))); $page->setLineColor($shape['color']); $page->setFillColor($shape['color']); $page->drawRectangle($x, $y, $x + $this->getWidth(), $y + $rowHeight + $this->getPadding(self::BOTTOM) + $this->getPadding(self::TOP), $shape['type']); $page->setFillColor(new Zend_Pdf_Color_Html('#000000')); }