Fix TcPdf

This commit is contained in:
Michael RICOIS 2017-02-01 13:16:30 +01:00
parent 7dd700c160
commit cb9ff5f7b1

View File

@ -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');
} }
} }