|
noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
|
API for creating PDF, unicode, based on tfpdf. More...
Inheritance diagram for PDF_Core:
Collaboration diagram for PDF_Core:Public Member Functions | |
| __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 | |
Protected Member Functions | |
| 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 | |
| $bigger | |
| $cells =array() | |
API for creating PDF, unicode, based on tfpdf.
Definition at line 62 of file pdf_core.class.php.
| PDF_Core::__construct | ( | $orientation = 'P', | |
| $unit = 'mm', | |||
| $format = 'A4' ) |
Definition at line 70 of file pdf_core.class.php.
|
protected |
Definition at line 263 of file pdf_core.class.php.
References $size.
Referenced by write_cell(), and write_multi().
|
protected |
Check if a page must be added due a MultiCell.
On doit calculer si le texte dépasse la texte et compter le nombre de lignes que le texte prendrait. Ensuite il faut faire un saut de page (renvoit true) si dépasse
Definition at line 156 of file pdf_core.class.php.
References $height, $i, $nb_row, $size, count_nb_row(), h, type, and width.
Referenced by print_row().
Here is the call graph for this function:
|
protected |
Count the number of rows a p_text will take for a multicell.
| $p_text | String |
| $p_colSize | size of the column in User Unit |
Definition at line 122 of file pdf_core.class.php.
Referenced by check_page_add().
| PDF_Core::fill_row | ( | $enable | ) |
set color for row ,
| $enable | (int)set color 0 or disable 1 |
Definition at line 358 of file pdf_core.class.php.
References is_fill().
Referenced by Print_Ledger_Detail_Item\export().
Here is the call graph for this function:| PDF_Core::get_margin_bottom | ( | ) |
Definition at line 92 of file pdf_core.class.php.
| PDF_Core::get_margin_left | ( | ) |
Definition at line 88 of file pdf_core.class.php.
| PDF_Core::get_margin_right | ( | ) |
Definition at line 101 of file pdf_core.class.php.
| PDF_Core::get_margin_top | ( | ) |
Definition at line 97 of file pdf_core.class.php.
| PDF_Core::get_orientation | ( | ) |
Definition at line 105 of file pdf_core.class.php.
| PDF_Core::get_page_size | ( | ) |
Definition at line 113 of file pdf_core.class.php.
| PDF_Core::get_unit | ( | ) |
Definition at line 109 of file pdf_core.class.php.
| PDF_Core::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.
Definition at line 342 of file pdf_core.class.php.
References $p_step.
Referenced by fill_row().
| PDF_Core::line_new | ( | $p_step = null | ) |
Print all the cell stored and call Ln (new line)
| int | $p_step |
Definition at line 325 of file pdf_core.class.php.
References $p_step, and print_row().
Referenced by Card_PDF\export(), Print_Ledger_Detail\export(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), Print_Ledger_Simple\export(), Print_Ledger_Simple_Without_Vat\export(), Print_Ledger_Detail_Item\Header(), and Noalyss\Invoice_PDF\header().
Here is the call graph for this function:| PDF_Core::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_
| $w | width (in PDF unit ) |
| $h | interline (in pt) |
| $txt | text to display |
| $border | border valid values are 1 : border ,0 : no-border, T : top,B : bottom,L : left,R : right |
| $align | text align valid values are L : left,R : right |
| $fill | color true or false |
Definition at line 315 of file pdf_core.class.php.
References $align, $w, and write_multi().
Here is the call graph for this function:
|
protected |
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
Definition at line 213 of file pdf_core.class.php.
References $a, $bigger, $cells, $e, $height, $i, $size, $tmp, check_page_add(), and noalyss_str_replace().
Referenced by line_new().
Here is the call graph for this function:| PDF_Core::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
| $width | width (in PDF unit ) |
| $height | height (in PDF unit ) |
| $txt | text to print (unicode) |
| $border | border valid values are 1 : border ,0 : no-border, T : top,B : bottom,L : left,R : right |
| $interline | (unit pt ) space between lines |
| $align | text alignment valid values are L : left,R : right |
| $fill | color true or false |
| $link | url |
Definition at line 281 of file pdf_core.class.php.
References $align, $height, $width, and add_cell().
Referenced by Card_PDF\export(), Print_Ledger_Detail\export(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), Print_Ledger_Simple\export(), Print_Ledger_Simple_Without_Vat\export(), and Print_Ledger_Detail_Item\Header().
Here is the call graph for this function:| PDF_Core::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
| $width | width (in PDF unit ) |
| $interline | interline (unit pt) |
| $txt | text to print (unicode) |
| $border | border valid values are 1 : border ,0 : no-border, T : top,B : bottom,L : left,R : right |
| $align | text alignment valid values are L : left,R : right |
| $fill | color true or false |
Definition at line 296 of file pdf_core.class.php.
References $align, $width, and add_cell().
Referenced by Print_Ledger_Detail\export(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), Print_Ledger_Simple\export(), Print_Ledger_Simple_Without_Vat\export(), Noalyss\Invoice_PDF\header(), and LongLine().
Here is the call graph for this function:
|
protected |
Definition at line 68 of file pdf_core.class.php.
Referenced by print_row().
|
protected |
Definition at line 67 of file pdf_core.class.php.
Referenced by print_row().