Correctly set font for PDF footer (bug #3168749).
This commit is contained in:
@@ -129,7 +129,8 @@ class PMA_PDF extends TCPDF
|
|||||||
if (!isset($this->footerset[$this->page])) {
|
if (!isset($this->footerset[$this->page])) {
|
||||||
$this->SetY(-15);
|
$this->SetY(-15);
|
||||||
//Page number
|
//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
|
// set footerset
|
||||||
$this->footerset[$this->page] = 1;
|
$this->footerset[$this->page] = 1;
|
||||||
@@ -403,6 +404,7 @@ function PMA_exportHeader()
|
|||||||
$pdf->AddFont('DejaVuSerif', '', 'dejavuserif.php');
|
$pdf->AddFont('DejaVuSerif', '', 'dejavuserif.php');
|
||||||
$pdf->AddFont('DejaVuSerif', 'B', 'dejavuserifb.php');
|
$pdf->AddFont('DejaVuSerif', 'B', 'dejavuserifb.php');
|
||||||
$pdf->SetFont(PMA_PDF_FONT, '', 11.5);
|
$pdf->SetFont(PMA_PDF_FONT, '', 11.5);
|
||||||
|
$pdf->setFooterFont(array(PMA_PDF_FONT, '', 11.5));
|
||||||
$pdf->AliasNbPages();
|
$pdf->AliasNbPages();
|
||||||
$pdf->Open();
|
$pdf->Open();
|
||||||
|
|
||||||
|
@@ -239,8 +239,7 @@ class PMA_PDF extends TCPDF
|
|||||||
if ($with_doc) {
|
if ($with_doc) {
|
||||||
$this->SetY(-15);
|
$this->SetY(-15);
|
||||||
$this->SetFont($this->_ff, '', 14);
|
$this->SetFont($this->_ff, '', 14);
|
||||||
$this->setFooterFont($this->_ff);
|
$this->Cell(0, 6, __('Page number:') . ' ' . $this->getAliasNumPage() . '/' . $this->getAliasNbPages(), 'T', 0, 'C');
|
||||||
$this->Cell(0, 6, __('Page number:') . ' ' . $this->PageNo() . '/{nb}', 'T', 0, 'C');
|
|
||||||
$this->Cell(0, 6, PMA_localisedDate(), 0, 1, 'R');
|
$this->Cell(0, 6, PMA_localisedDate(), 0, 1, 'R');
|
||||||
$this->SetY(20);
|
$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', '', 'dejavuserif.php');
|
||||||
$pdf->AddFont('DejaVuSerif', 'B', 'dejavuserifb.php');
|
$pdf->AddFont('DejaVuSerif', 'B', 'dejavuserifb.php');
|
||||||
$pdf->SetFont($this->_ff, '', 14);
|
$pdf->SetFont($this->_ff, '', 14);
|
||||||
|
$pdf->setFooterFont(array($this->_ff, '', 14));
|
||||||
$pdf->SetAutoPageBreak('auto');
|
$pdf->SetAutoPageBreak('auto');
|
||||||
$alltables = $this->getAllTables($db,$this->pageNumber);
|
$alltables = $this->getAllTables($db,$this->pageNumber);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user