35 public function __construct ($p_cn =
null, $orientation =
'L', $unit =
'mm', $format =
'A4')
38 if($p_cn ==
null) die(
"No database connection. Abort.");
41 parent::__construct($p_cn,
'L', $unit, $format);
42 date_default_timezone_set (
'Europe/Paris');
43 $this->AddFont(
'DejaVu',
'',
'DejaVuSans.ttf',
true);
44 $this->AddFont(
'DejaVu',
'B',
'DejaVuSans-Bold.ttf',
true);
45 $this->AddFont(
'DejaVu',
'BI',
'DejaVuSans-BoldOblique.ttf',
true);
46 $this->AddFont(
'DejaVuCond',
'',
'DejaVuSansCondensed.ttf',
true);
47 $this->AddFont(
'DejaVuCond',
'B',
'DejaVuSansCondensed-Bold.ttf',
true);
48 $this->AddFont(
'DejaVuCond',
'I',
'DejaVuSansCondensed-Oblique.ttf',
true);
52 $this->soc = $this->own->MY_NAME;
53 $this->date = date(
'd.m.Y');
58 $this->SetFont(
'DejaVu',
'B', 10);
60 $this->Cell(0,10,$this->dossier,
'B', 0,
'C');
69 $this->SetFont(
'DejaVuCond',
'I', 8);
71 $this->Cell(0,8,
'Date '.$this->date.
" - Page ".$this->PageNo().
'/{nb}',0,0,
'C');
74 $this->Cell(0,8,
'Created by NOALYSS, online on https://www.noalyss.eu',0,0,
'C',
false,
'https://www.noalyss.eu');
Class to manage the company parameter (address, name...)
API for creating PDF, unicode, based on tfpdf.
__construct($p_cn=null, $orientation='L', $unit='mm', $format='A4')