noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
API for creating PDF, unicode, based on tfpdf. More...
Public Member Functions | |
__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. | |
line_new ($p_step=null) | |
Print all the cell stored and call Ln (new line) | |
LongLine ($w, $h, $txt, $border=0, $align='', $fill=false) | |
write_cell ($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') | |
Protected Member Functions | |
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 | |
Private 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. | |
Private 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.
|
private |
Definition at line 263 of file pdf_core.class.php.
References $size.
Referenced by LongLine(), and write_cell().
|
private |
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().
|
private |
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::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 301 of file pdf_core.class.php.
References $p_step.
PDF_Core::line_new | ( | $p_step = null | ) |
Print all the cell stored and call Ln (new line)
int | $p_step |
Definition at line 284 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(), and Print_Ledger_Detail_Item\Header().
PDF_Core::LongLine | ( | $w, | |
$h, | |||
$txt, | |||
$border = 0, | |||
$align = '', | |||
$fill = false ) |
Definition at line 274 of file pdf_core.class.php.
References $align, $w, 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(), and Print_Ledger_Simple_Without_Vat\export().
|
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, $cells, $e, $i, $size, $tmp, check_page_add(), and noalyss_str_replace().
Referenced by line_new().
PDF_Core::write_cell | ( | $w, | |
$h = 0, | |||
$txt = '', | |||
$border = 0, | |||
$ln = 0, | |||
$align = '', | |||
$fill = false, | |||
$link = '' ) |
Definition at line 269 of file pdf_core.class.php.
References $align, $w, 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().
|
private |
Definition at line 68 of file pdf_core.class.php.
|
private |
Definition at line 67 of file pdf_core.class.php.
Referenced by print_row().