pdf_azur
class pdf_azur extends DocModel (View source)
pdf_azur class
Class to generate PDF with template Azur
Properties
| $error | from DocModel | ||
| $db | |||
| $name | |||
| $description | |||
| $type | |||
| $phpmin | |||
| $version | |||
| $page_largeur | |||
| $page_hauteur | |||
| $format | |||
| $marge_gauche | |||
| $marge_droite | |||
| $marge_haute | |||
| $marge_basse | |||
| $emetteur | |||
| protected | $watermark_text | ||
| protected | $modulepart | ||
| protected | $const_prefix |
Methods
static array
getModelsList(DoliDB $db, integer $maxfilenamelength, string $type = '')
Return list of active generation models
from DocModel
__construct(DoliDB $db)
Constructor
int
write_file(Object $object, Translate $outputlangs, string $srctemplatepath = '', int $hidedetails, int $hidedesc, int $hideref)
Function to build pdf onto disk
write_content(TCPDF $pdf, Object $object, Translate $outputlangs, int $default_font_size, int $tab_top, int $heightforinfotot, int $heightforfreetext, int $heightforfooter)
Function to write pdf content
int
print_line(TCPDF $pdf, string $name, string $value, int $curY, Translate $outputlangs, int $default_font_size, int $add_separator = 1)
Function to print table line
void
_tableau(TCPDF $pdf, string $tab_top, string $tab_height, int $nexY, Translate $outputlangs, int $hidetop, int $hidebottom, string $currency = '')
Show table for lines
void
_pagehead(TCPDF $pdf, Object $object, int $showaddress, Translate $outputlangs, string $titlekey = '')
Show top header of page.
int
_pagefoot(TCPDF $pdf, Object $object, Translate $outputlangs, int $hidefreetext)
Show footer of page. Need this->emetteur object
Details
static array
getModelsList(DoliDB $db, integer $maxfilenamelength, string $type = '')
Return list of active generation models
at line 58
__construct(DoliDB $db)
Constructor
at line 109
int
write_file(Object $object, Translate $outputlangs, string $srctemplatepath = '', int $hidedetails, int $hidedesc, int $hideref)
Function to build pdf onto disk
at line 318
protected
write_content(TCPDF $pdf, Object $object, Translate $outputlangs, int $default_font_size, int $tab_top, int $heightforinfotot, int $heightforfreetext, int $heightforfooter)
Function to write pdf content
at line 356
protected int
print_line(TCPDF $pdf, string $name, string $value, int $curY, Translate $outputlangs, int $default_font_size, int $add_separator = 1)
Function to print table line
at line 408
void
_tableau(TCPDF $pdf, string $tab_top, string $tab_height, int $nexY, Translate $outputlangs, int $hidetop, int $hidebottom, string $currency = '')
Show table for lines
at line 435
void
_pagehead(TCPDF $pdf, Object $object, int $showaddress, Translate $outputlangs, string $titlekey = '')
Show top header of page.
at line 589
int
_pagefoot(TCPDF $pdf, Object $object, Translate $outputlangs, int $hidefreetext)
Show footer of page. Need this->emetteur object