I am trying to number the Quote/Invoice and Sales Order pdf page like 1/1, 2/1, 3/1 ....But can't.I am trying to do this with $pdf->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 1, false, 'R', 0, '', 0, false, 'T', 'M'); in the page vtiger/vtlib/Vtiger/pdf/inventory/contentviewer.php but it couldn't work. I have tried also this in vtiger/vtlib/vtiger/pdf/vtiewers/pagerviewer.php by these changes $displayFormat=$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 1, false, 'R', 0, '', 0, false, 'T', 'M'); if($this->model) { $displayFormat = $this->model->get('format', $displayFormat); } and in vtiger/include/inventoryPDFcontroller.php function buildPagerModel() { $footerModel = new Vtiger_PDF_Model(); $footerModel->set('format',$displayFormat); return $footerModel; } Please help me, where I am going wrong in the codes.
I also tried this way too. I wrote code in vtigercrm\vtlib\Vtiger\PDF\inventory\FooterViewer.php $description='Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(); $pdf->MultiCell($footerFrame->w, $targetFooterHeight-$descriptionHeight, $description,0, 'L', 0, 1, $pdf->GetX(), $pdf->GetY()); but still doesn't work Please Help me