noalyss Version-9
Public Member Functions
PDFLand Class Reference

PDF in landscape mode. More...

+ Inheritance diagram for PDFLand:
+ Collaboration diagram for PDFLand:

Public Member Functions

 __construct ($p_cn=null, $orientation='L', $unit='mm', $format='A4')
 
 Footer ()
 
 Header ()
 
- Public Member Functions inherited from PDF
 __construct (Database $p_cn, $orientation='P', $unit='mm', $format='A4')
 
 Footer ()
 
 get_tiers ($p_jr_id, $p_jrn_type)
 retrieve the client name and quick_code More...
 
 Header ()
 
 set_filter_operation ($filter_operation)
 
 setDossierInfo ($dossier="n/a")
 
- Public Member Functions inherited from PDF_Core
 __construct ( $orientation='P', $unit='mm', $format='A4')
 
 get_margin_bottom ()
 
 get_margin_left ()
 
 get_margin_right ()
 
 get_margin_top ()
 
 get_orientation ()
 
 get_page_size ()
 
 get_unit ()
 
 is_fill ($p_step)
 If the step is even then return 1 and set the backgroup color to blue , otherwise returns 0, and set the background color to white It is use to compute alternated colored row , it the parameter fill in write_cell and cell. More...
 
 line_new ($p_step=null)
 Print all the cell stored and call Ln (new line) More...
 
 LongLine ($w, $h, $txt, $border=0, $align='', $fill=false)
 
 write_cell ($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='')
 

Additional Inherited Members

- Data Fields inherited from PDF
 $cn = null
 
 $date = ""
 
 $dossier = "n/a"
 
 $own = null
 
 $soc = ""
 
- Protected Member Functions inherited from PDF_Core
 print_row ()
 print the current array of cell and reset it , if different colors are set on the same row you have to print it before changing More...
 

Detailed Description

PDF in landscape mode.

Definition at line 32 of file pdf_land.class.php.

Constructor & Destructor Documentation

◆ __construct()

PDFLand::__construct (   $p_cn = null,
  $orientation = 'L',
  $unit = 'mm',
  $format = 'A4' 
)

Definition at line 35 of file pdf_land.class.php.

36 {
37
38 if($p_cn == null) die("No database connection. Abort.");
39 $this->bigger=0;
40
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);
49
50 $this->cn = $p_cn;
51 $this->own = new Noalyss_Parameter_Folder($this->cn);
52 $this->soc = $this->own->MY_NAME;
53 $this->date = date('d.m.Y');
54 }
$input_from cn
Definition: balance.inc.php:66
Class to manage the company parameter (address, name...)

References cn.

Member Function Documentation

◆ Footer()

PDFLand::Footer ( )

Reimplemented from PDF.

Definition at line 64 of file pdf_land.class.php.

65 {
66 //Position at 2 cm from bottom
67 $this->SetY(-20);
68 //Arial italic 8
69 $this->SetFont('DejaVuCond', 'I', 8);
70 //Page number
71 $this->Cell(0,8,'Date '.$this->date." - Page ".$this->PageNo().'/{nb}',0,0,'C');
72 $this->Ln(3);
73 // Created by NOALYSS
74 $this->Cell(0,8,'Created by NOALYSS, online on https://www.noalyss.eu',0,0,'C',false,'https://www.noalyss.eu');
75
76 }

◆ Header()

PDFLand::Header ( )

Reimplemented from PDF.

Definition at line 55 of file pdf_land.class.php.

56 {
57 //Arial bold 12
58 $this->SetFont('DejaVu', 'B', 10);
59 //Title
60 $this->Cell(0,10,$this->dossier, 'B', 0, 'C');
61 //Line break
62 $this->Ln(20);
63 }

The documentation for this class was generated from the following file: