noalyss Version-9
|
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. 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='') | |
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 More... | |
Private Member Functions | |
add_cell (Cellule $Ce) | |
check_page_add () | |
Check if a page must be added due a MultiCell. More... | |
count_nb_row ($p_text, $p_colSize) | |
Count the number of rows a p_text will take for a multicell. More... | |
Private Attributes | |
$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 69 of file pdf_core.class.php.
|
private |
Definition at line 262 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 155 of file pdf_core.class.php.
References $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 121 of file pdf_core.class.php.
Referenced by check_page_add().
PDF_Core::get_margin_bottom | ( | ) |
Definition at line 91 of file pdf_core.class.php.
PDF_Core::get_margin_left | ( | ) |
Definition at line 87 of file pdf_core.class.php.
PDF_Core::get_margin_right | ( | ) |
Definition at line 100 of file pdf_core.class.php.
PDF_Core::get_margin_top | ( | ) |
Definition at line 96 of file pdf_core.class.php.
PDF_Core::get_orientation | ( | ) |
Definition at line 104 of file pdf_core.class.php.
PDF_Core::get_page_size | ( | ) |
Definition at line 112 of file pdf_core.class.php.
PDF_Core::get_unit | ( | ) |
Definition at line 108 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 300 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 283 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 273 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 212 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 268 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 67 of file pdf_core.class.php.
Referenced by print_row().