extranet/library/GenCourrier/PDF.php
Michael RICOIS 7b441166ec Composer
2017-01-16 15:09:23 +01:00

22 lines
422 B
PHP

<?php
class PDF extends FPDI {
/**
* "Remembers" the template id of the imported page
*/
var $_tplIdx;
/**
* include a background template for every page
*/
function Header() {
if (is_null($this->_tplIdx)) {
$file = realpath(dirname(__FILE__)).'/modele.pdf';
$this->setSourceFile($file);
$this->_tplIdx = $this->importPage(1);
}
$this->useTemplate($this->_tplIdx);
}
function Footer() {
}
}