diff --git a/libraries/export/pdf.php b/libraries/export/pdf.php index 8e2bd53f6..431df0da9 100644 --- a/libraries/export/pdf.php +++ b/libraries/export/pdf.php @@ -129,7 +129,8 @@ class PMA_PDF extends TCPDF if (!isset($this->footerset[$this->page])) { $this->SetY(-15); //Page number - $this->Cell(0, 10, __('Page number:') .' '.$this->PageNo() .'/{nb}', 'T', 0, 'C'); + $this->setFooterFont(PMA_PDF_FONT, '', 14); + $this->Cell(0, 6, __('Page number:') . ' ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 'T', 0, 'C'); // set footerset $this->footerset[$this->page] = 1; @@ -403,6 +404,7 @@ function PMA_exportHeader() $pdf->AddFont('DejaVuSerif', '', 'dejavuserif.php'); $pdf->AddFont('DejaVuSerif', 'B', 'dejavuserifb.php'); $pdf->SetFont(PMA_PDF_FONT, '', 11.5); + $pdf->setFooterFont(array(PMA_PDF_FONT, '', 11.5)); $pdf->AliasNbPages(); $pdf->Open(); diff --git a/libraries/schema/Pdf_Relation_Schema.class.php b/libraries/schema/Pdf_Relation_Schema.class.php index 7b96e8c63..c8d758757 100644 --- a/libraries/schema/Pdf_Relation_Schema.class.php +++ b/libraries/schema/Pdf_Relation_Schema.class.php @@ -239,8 +239,7 @@ class PMA_PDF extends TCPDF if ($with_doc) { $this->SetY(-15); $this->SetFont($this->_ff, '', 14); - $this->setFooterFont($this->_ff); - $this->Cell(0, 6, __('Page number:') . ' ' . $this->PageNo() . '/{nb}', 'T', 0, 'C'); + $this->Cell(0, 6, __('Page number:') . ' ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 'T', 0, 'C'); $this->Cell(0, 6, PMA_localisedDate(), 0, 1, 'R'); $this->SetY(20); } @@ -857,6 +856,7 @@ class PMA_Pdf_Relation_Schema extends PMA_Export_Relation_Schema $pdf->AddFont('DejaVuSerif', '', 'dejavuserif.php'); $pdf->AddFont('DejaVuSerif', 'B', 'dejavuserifb.php'); $pdf->SetFont($this->_ff, '', 14); + $pdf->setFooterFont(array($this->_ff, '', 14)); $pdf->SetAutoPageBreak('auto'); $alltables = $this->getAllTables($db,$this->pageNumber);