Fix TcPdf
This commit is contained in:
parent
7dd700c160
commit
cb9ff5f7b1
@ -1,15 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'Vendors/tcpdf/tcpdf.php';
|
|
||||||
|
|
||||||
class Scores_Pdf_Tcpdf extends TCPDF
|
class Scores_Pdf_Tcpdf extends TCPDF
|
||||||
{
|
{
|
||||||
protected $bgimage = null;
|
protected $bgimage = null;
|
||||||
|
|
||||||
public function SetBackgroundImage($file)
|
public function SetBackgroundImage($file)
|
||||||
{
|
{
|
||||||
$this->bgimage = $file;
|
$this->bgimage = $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc)
|
||||||
* @see TCPDF::Header()
|
* @see TCPDF::Header()
|
||||||
@ -31,7 +29,7 @@ class Scores_Pdf_Tcpdf extends TCPDF
|
|||||||
$this->setPageMark();
|
$this->setPageMark();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (non-PHPdoc)
|
* (non-PHPdoc)
|
||||||
* @see TCPDF::Footer()
|
* @see TCPDF::Footer()
|
||||||
@ -45,6 +43,6 @@ class Scores_Pdf_Tcpdf extends TCPDF
|
|||||||
// Page number
|
// Page number
|
||||||
$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
|
$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user