30 lines
526 B
PHP

<?php
require_once 'Vendors/tcpdf/tcpdf.php';
require_once 'Vendors/fpdi/fpdi.php';
class Scores_Pdf_Fpdi extends FPDI
{
/**
* "Remembers" the template id of the imported page
*/
var $_tplIdx;
/**
* Draw an imported PDF logo on every page
* @param string $template
*/
function Header()
{
if (is_null($this->_tplIdx)) {
$this->setSourceFile($template);
$this->_tplIdx = $this->importPage(1);
}
$this->useTemplate($this->_tplIdx);
}
function Footer()
{
// emtpy method body
}
}