public function newPage(array $settings = array()) { $pageWidth = $this->_convertInchToPoints((double) $this->_config(self::XML_PAGEWIDTH)); $pageHeight = $this->_convertInchToPoints((double) $this->_config(self::XML_PAGEHEIGHT)); $settings = array('page_size' => $pageWidth . ":" . $pageHeight . ":"); $page = parent::newPage($settings); $this->x = floor($this->_convertInchToPoints((double) $this->_config(self::XML_SIDEMARGIN))); $this->y = floor($pageHeight - $this->_convertInchToPoints((double) $this->_config(self::XML_TOPMARGIN))) - $this->_getConfigFontSize(); $page->setFillColor(new Zend_Pdf_Color_GrayScale(0)); $this->_setFontRegular($page, $this->_getConfigFontSize()); $this->_currLabel = 1; $this->_currRow = 1; $this->_currColumn = 1; return $page; }
/** * Create new page and assign to PDF object * * @param array $settings * @return Zend_Pdf_Page */ public function newPage(array $settings = array()) { $page = parent::newPage($settings); if (!empty($settings['table_header'])) { $this->_setFontRegular($page); $page->setFillColor(new Zend_Pdf_Color_RGB(0.93, 0.92, 0.92)); $page->setLineColor(new Zend_Pdf_Color_GrayScale(0.5)); $page->setLineWidth(0.5); $page->drawRectangle(25, $this->y, 570, $this->y - 15); $this->y -= 10; $page->setFillColor(new Zend_Pdf_Color_RGB(0.4, 0.4, 0.4)); $this->_drawHeader($page); $page->setFillColor(new Zend_Pdf_Color_GrayScale(0)); $this->y -= 20; } return $page; }
/** * Create new page and assign to PDF object * * @param array $settings * @return Zend_Pdf_Page */ public function newPage(array $settings = array()) { $page = parent::newPage($settings); if (!empty($settings['table_header'])) { $this->_drawHeader($page); } return $page; }