22 lines
422 B
PHP
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() {
|
|
}
|
|
} |