public function loadPdf() { $top = '0'; $bottom = '0'; $left = '0'; $right = '0'; $orientation = $this->getOrientation(); $pdf = new Mpdf_Magestorepdf('', $this->pdfPaperFormat(), 8, '', $left, $right, $top, $bottom); $pdf->AddPage($orientation); return $pdf; }
public function loadPdf() { $top = '5'; $bottom = '5'; $left = '0'; $right = '0'; $orientation = $this->getOrientation(); $pdf = new Mpdf_Magestorepdf('', $this->pdfPaperFormat(), 8, '', $left, $right, $top, $bottom); $pdf->AddPage($orientation); //Change by Jack 29/12 - add page number $storeId = Mage::app()->getStore()->getStoreId(); $isEnablePageNumbering = Mage::getStoreConfig('pdfinvoiceplus/general/page_numbering', $storeId); if ($isEnablePageNumbering) { $pdf->SetHTMLFooter('<div style = "float:right;z-index:16000 !important; width:30px;">{PAGENO}/{nb}</div>'); } // End Change return $pdf; }