extranet/library/GenCourrier/PDF.php

22 lines
422 B
PHP
Raw Normal View History

2011-08-22 14:25:12 +02:00
<?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() {
}
}