noalyss  Version-6.7.2
Public Member Functions
PDFLand Class Reference
Inheritance diagram for PDFLand:
PDF TFPDF Print_Ledger_Detail_Item

Public Member Functions

 __construct ($p_cn=null, $orientation= 'P', $unit= 'mm', $format= 'A4')
 Footer ()
 Header ()

Detailed Description

Definition at line 183 of file class_pdf.php.


Constructor & Destructor Documentation

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');
    }

Member Function Documentation

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');

    }

Reimplemented from PDF.

Reimplemented in Print_Ledger_Detail_Item.

Definition at line 206 of file class_pdf.php.

References PDF\Cell(), and PDF\Ln().

    {
        //Arial bold 12
        $this->SetFont('DejaVu', 'B', 10);
        //Title
        $this->Cell(0,10,$this->dossier, 'B', 0, 'C');
        //Line break
        $this->Ln(20);
    }

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations