|
noalyss
Version-6.7.2
|
Public Member Functions | |
| __construct ($p_cn=null, $orientation= 'P', $unit= 'mm', $format= 'A4') | |
| Footer () | |
| Header () | |
Definition at line 183 of file class_pdf.php.
| PDFLand::__construct | ( | $ | p_cn = null, |
| $ | orientation = 'P', |
||
| $ | unit = 'mm', |
||
| $ | format = 'A4' |
||
| ) |
Reimplemented from PDF.
Definition at line 186 of file class_pdf.php.
References cn.
{
if($p_cn == null) die("No database connection. Abort.");
$this->bigger=0;
parent::TFPDF('L', $unit, $format);
date_default_timezone_set ('Europe/Paris');
$this->AddFont('DejaVu','','DejaVuSans.ttf',true);
$this->AddFont('DejaVu','B','DejaVuSans-Bold.ttf',true);
$this->AddFont('DejaVu','BI','DejaVuSans-BoldOblique.ttf',true);
$this->AddFont('DejaVuCond','','DejaVuSansCondensed.ttf',true);
$this->AddFont('DejaVuCond','B','DejaVuSansCondensed-Bold.ttf',true);
$this->AddFont('DejaVuCond','I','DejaVuSansCondensed-Oblique.ttf',true);
$this->cn = $p_cn;
$this->own = new own($this->cn);
$this->soc = $this->own->MY_NAME;
$this->date = date('d.m.Y');
}
| PDFLand::Footer | ( | ) |
Reimplemented from PDF.
Reimplemented in Print_Ledger_Detail_Item.
Definition at line 215 of file class_pdf.php.
References PDF\Cell(), and PDF\Ln().
{
//Position at 2 cm from bottom
$this->SetY(-20);
//Arial italic 8
$this->SetFont('DejaVuCond', 'I', 8);
//Page number
$this->Cell(0,8,'Date '.$this->date." - Page ".$this->PageNo().'/{nb}',0,0,'C');
$this->Ln(3);
// Created by NOALYSS
$this->Cell(0,8,'Created by NOALYSS, online on http://www.aevalys.eu',0,0,'C',false,'http://www.aevalys.eu');
}
| PDFLand::Header | ( | ) |
Reimplemented from PDF.
Reimplemented in Print_Ledger_Detail_Item.
Definition at line 206 of file class_pdf.php.
References PDF\Cell(), and PDF\Ln().