noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
Noalyss\XMLDocument\PDF Class Reference
+ Inheritance diagram for Noalyss\XMLDocument\PDF:
+ Collaboration diagram for Noalyss\XMLDocument\PDF:

Public Member Functions

 Footer ()
 
 Header ()
 
- Public Member Functions inherited from PDF_Core
 __construct ( $orientation='P', $unit='mm', $format='A4')
 
 fill_row ($enable)
 set color for row ,
 
 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.
 
 line_new ($p_step=null)
 Print all the cell stored and call Ln (new line)
 
 LongLine ($w, $h, $txt, $border=0, $align='', $fill=false)
 add a cell with automatic return to the line if the text is too long, deprecated , it calls only PDFCore::write_cell_
 
 write_cell ($width, $height=0, $txt='', $border=0, $interline=0, $align='', $fill=false, $link='')
 add a cell the text is not cut and don't return to this line if too large
 
 write_multi ($width, $interline, $txt, $border=0, $align='', $fill=false)
 add a cell with automatic return to the line if the text is too long
 

Additional Inherited Members

- Protected Member Functions inherited from PDF_Core
 add_cell (Cellule $Ce)
 
 check_page_add ()
 Check if a page must be added due a MultiCell.
 
 count_nb_row ($p_text, $p_colSize)
 Count the number of rows a p_text will take for a multicell.
 
 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
 
- Protected Attributes inherited from PDF_Core
 $bigger
 
 $cells =array()
 

Detailed Description

Definition at line 31 of file pdf.class.php.

Member Function Documentation

◆ Footer()

Noalyss\XMLDocument\PDF::Footer ( )

Definition at line 37 of file pdf.class.php.

38 {
39 $date=date('d.m.y h:i');
40 //Position at 20 cm from bottom
41 $this->SetY(-20);
42 //Arial italic 8
43 $this->SetFont('Arial', '', 8);
44 //Page number
45 parent::Cell(0,8,'Date '.$date." - Page ".$this->PageNo().'/{nb}',0,0,'C');
46 parent::Ln(3);
47 // Created by NOALYSS
48 parent::Cell(0,8,'Created by NOALYSS, online on https://www.noalyss.eu',0,0,'C',false,'https://www.noalyss.eu');
49 parent::Ln(3);
50 }

References $date.

◆ Header()

Noalyss\XMLDocument\PDF::Header ( )

Definition at line 33 of file pdf.class.php.

34 {
35
36 }

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