dolibarr  13.0.2
Functions
pdf.lib.php File Reference

Set of functions used for PDF generation. More...

Go to the source code of this file.

Functions

 pdf_getFormat (Translate $outputlangs=null, $mode= 'setup')
 Return array with format properties of default PDF format. More...
 
 pdf_getInstance ($format= '', $metric= 'mm', $pagetype= 'P')
 Return a PDF instance object. More...
 
 pdf_getEncryption ($pathoffile)
 Return if pdf file is protected/encrypted. More...
 
 pdf_getPDFFont ($outputlangs)
 Return font name to use for PDF generation. More...
 
 pdf_getPDFFontSize ($outputlangs)
 Return font size to use for PDF generation. More...
 
 pdf_getHeightForLogo ($logo, $url=false)
 Return height to use for Logo onto PDF. More...
 
 pdfGetHeightForHtmlContent (&$pdf, $htmlcontent)
 Function to try to calculate height of a HTML Content. More...
 
 pdfBuildThirdpartyName ($thirdparty, Translate $outputlangs, $includealias=0)
 Returns the name of the thirdparty. More...
 
 pdf_build_address ($outputlangs, $sourcecompany, $targetcompany= '', $targetcontact= '', $usecontact=0, $mode= 'source', $object=null)
 Return a string with full address formated for output on documents. More...
 
 pdf_pagehead (&$pdf, $outputlangs, $page_height)
 Show header of page for PDF generation. More...
 
 pdf_getSubstitutionArray ($outputlangs, $exclude=null, $object=null, $onlykey=0)
 Return array of possible substitutions for PDF content (without external module substitutions). More...
 
 pdf_watermark (&$pdf, $outputlangs, $h, $w, $unit, $text)
 Add a draft watermark on PDF files. More...
 
 pdf_bank (&$pdf, $outputlangs, $curx, $cury, $account, $onlynumber=0, $default_font_size=10)
 Show bank informations for PDF generation. More...
 
 pdf_pagefoot (&$pdf, $outputlangs, $paramfreetext, $fromcompany, $marge_basse, $marge_gauche, $page_hauteur, $object, $showdetails=0, $hidefreetext=0)
 Show footer of page for PDF generation. More...
 
 pdf_writeLinkedObjects (&$pdf, $object, $outputlangs, $posx, $posy, $w, $h, $align, $default_font_size)
 Show linked objects for PDF generation. More...
 
 pdf_writelinedesc (&$pdf, $object, $i, $outputlangs, $w, $h, $posx, $posy, $hideref=0, $hidedesc=0, $issupplierline=0)
 Output line description into PDF. More...
 
 pdf_getlinedesc ($object, $i, $outputlangs, $hideref=0, $hidedesc=0, $issupplierline=0)
 Return line description translated in outputlangs and encoded into htmlentities and with
More...
 
 pdf_getlinenum ($object, $i, $outputlangs, $hidedetails=0)
 Return line num. More...
 
 pdf_getlineref ($object, $i, $outputlangs, $hidedetails=0)
 Return line product ref. More...
 
 pdf_getlineref_supplier ($object, $i, $outputlangs, $hidedetails=0)
 Return line ref_supplier. More...
 
 pdf_getlinevatrate ($object, $i, $outputlangs, $hidedetails=0)
 Return line vat rate. More...
 
 pdf_getlineupexcltax ($object, $i, $outputlangs, $hidedetails=0)
 Return line unit price excluding tax. More...
 
 pdf_getlineupwithtax ($object, $i, $outputlangs, $hidedetails=0)
 Return line unit price including tax. More...
 
 pdf_getlineqty ($object, $i, $outputlangs, $hidedetails=0)
 Return line quantity. More...
 
 pdf_getlineqty_asked ($object, $i, $outputlangs, $hidedetails=0)
 Return line quantity asked. More...
 
 pdf_getlineqty_shipped ($object, $i, $outputlangs, $hidedetails=0)
 Return line quantity shipped. More...
 
 pdf_getlineqty_keeptoship ($object, $i, $outputlangs, $hidedetails=0)
 Return line keep to ship quantity. More...
 
 pdf_getlineunit ($object, $i, $outputlangs, $hidedetails=0, $hookmanager=false)
 Return line unit. More...
 
 pdf_getlineremisepercent ($object, $i, $outputlangs, $hidedetails=0)
 Return line remise percent. More...
 
 pdf_getlineprogress ($object, $i, $outputlangs, $hidedetails=0, $hookmanager=null)
 Return line percent. More...
 
 pdf_getlinetotalexcltax ($object, $i, $outputlangs, $hidedetails=0)
 Return line total excluding tax. More...
 
 pdf_getlinetotalwithtax ($object, $i, $outputlangs, $hidedetails=0)
 Return line total including tax. More...
 
 pdf_getTotalQty ($object, $type, $outputlangs)
 Return total quantity of products and/or services. More...
 
 pdf_getLinkedObjects ($object, $outputlangs)
 Return linked objects to use for document generation. More...
 
 pdf_getSizeForImage ($realpath)
 Return dimensions to use for images onto PDF checking that width and height are not higher than maximum (16x32 by default). More...
 
 pdfGetLineTotalDiscountAmount ($object, $i, $outputlangs, $hidedetails=0)
 Return line total amount discount. More...
 

Detailed Description

Set of functions used for PDF generation.

Definition in file pdf.lib.php.

Function Documentation

pdf_bank ( $pdf,
  $outputlangs,
  $curx,
  $cury,
  $account,
  $onlynumber = 0,
  $default_font_size = 10 
)

Show bank informations for PDF generation.

Parameters
TCPDF$pdfObject PDF
Translate$outputlangsObject lang
int$curxX
int$curyY
Account$accountBank account object
int$onlynumberOutput only number (bank+desk+key+number according to country, but without name of bank and domiciliation)
int$default_font_sizeDefault font size
Returns
float The Y PDF position

Definition at line 712 of file pdf.lib.php.

References dol_print_error(), dol_strlen(), and FormBank\getIBANLabel().

Referenced by pdf_einstein\_tableau_info(), pdf_aurore\_tableau_info(), pdf_azur\_tableau_info(), pdf_crabe\_tableau_info(), pdf_eratosthene\drawInfoTable(), pdf_cyan\drawInfoTable(), pdf_sponge\drawInfoTable(), and BordereauChequeBlochet\Header().

pdf_build_address (   $outputlangs,
  $sourcecompany,
  $targetcompany = '',
  $targetcontact = '',
  $usecontact = 0,
  $mode = 'source',
  $object = null 
)

Return a string with full address formated for output on documents.

Parameters
Translate$outputlangsOutput langs object
Societe$sourcecompanySource company object
Societe | string | null$targetcompanyTarget company object
Contact | string | null$targetcontactTarget contact object
int$usecontactUse contact instead of company
string$modeAddress type ('source', 'target', 'targetwithdetails', 'targetwithdetails_xxx': target but include also phone/fax/email/url)
Object$objectObject we want to build document for
Returns
string String with full address

Definition at line 376 of file pdf.lib.php.

References dol_format_address(), dol_string_nohtmltag(), and getState().

Referenced by pdf_merou\_pagehead(), pdf_soleil\_pagehead(), pdf_strato\_pagehead(), pdf_standard\_pagehead(), pdf_typhon\_pagehead(), pdf_storm\_pagehead(), pdf_squille\_pagehead(), pdf_standard_recruitmentjobposition\_pagehead(), pdf_espadon\_pagehead(), pdf_rouget\_pagehead(), pdf_standard_myobject\_pagehead(), pdf_canelle\_pagehead(), pdf_muscadet\_pagehead(), pdf_cornas\_pagehead(), pdf_aurore\_pagehead(), pdf_einstein\_pagehead(), pdf_eratosthene\_pagehead(), pdf_azur\_pagehead(), pdf_cyan\_pagehead(), pdf_crabe\_pagehead(), and pdf_sponge\_pagehead().

pdf_getEncryption (   $pathoffile)

Return if pdf file is protected/encrypted.

Parameters
string$pathoffilePath of file
Returns
boolean True or false

Definition at line 191 of file pdf.lib.php.

pdf_getFormat ( Translate  $outputlangs = null,
  $mode = 'setup' 
)
pdf_getHeightForLogo (   $logo,
  $url = false 
)
pdf_getInstance (   $format = '',
  $metric = 'mm',
  $pagetype = 'P' 
)
pdf_getlinedesc (   $object,
  $i,
  $outputlangs,
  $hideref = 0,
  $hidedesc = 0,
  $issupplierline = 0 
)

Return line description translated in outputlangs and encoded into htmlentities and with

Parameters
Object$objectObject
int$iCurrent line number (0 = first line, 1 = second line, ...)
Translate$outputlangsObject langs for output
int$hiderefHide reference
int$hidedescHide description
int$issupplierlineIs it a line for a supplier object ?
Returns
string String with line

Definition at line 1221 of file pdf.lib.php.

References dol_html_entity_decode(), dol_htmlentitiesbr(), dol_print_date(), and dol_textishtml().

Referenced by pdf_writelinedesc().

pdf_getlinenum (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line num.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1459 of file pdf.lib.php.

References dol_htmlentitiesbr().

pdf_getlineprogress (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0,
  $hookmanager = null 
)

Return line percent.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
HookManager$hookmanagerHook manager instance
Returns
string

Definition at line 1906 of file pdf.lib.php.

Referenced by pdf_sponge\write_file(), and pdf_crabe\write_file().

pdf_getlineqty (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line quantity.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1691 of file pdf.lib.php.

Referenced by pdf_cornas\write_file(), pdf_standard_myobject\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_sponge\write_file(), pdf_aurore\write_file(), pdf_muscadet\write_file(), pdf_azur\write_file(), pdf_einstein\write_file(), and pdf_crabe\write_file().

pdf_getlineqty_asked (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line quantity asked.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1725 of file pdf.lib.php.

pdf_getlineqty_keeptoship (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line keep to ship quantity.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1793 of file pdf.lib.php.

pdf_getlineqty_shipped (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line quantity shipped.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1759 of file pdf.lib.php.

pdf_getlineref (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line product ref.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1492 of file pdf.lib.php.

References dol_htmlentitiesbr().

pdf_getlineref_supplier (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line ref_supplier.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1524 of file pdf.lib.php.

References dol_htmlentitiesbr().

pdf_getlineremisepercent (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line remise percent.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1869 of file pdf.lib.php.

References dol_print_reduction().

Referenced by pdf_cornas\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_sponge\write_file(), pdf_muscadet\write_file(), pdf_azur\write_file(), pdf_einstein\write_file(), and pdf_crabe\write_file().

pdf_getlinetotalexcltax (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line total excluding tax.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string Return total of line excl tax

Definition at line 1952 of file pdf.lib.php.

References price().

Referenced by pdf_cornas\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_sponge\write_file(), pdf_muscadet\write_file(), pdf_azur\write_file(), pdf_einstein\write_file(), and pdf_crabe\write_file().

pdf_getlinetotalwithtax (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line total including tax.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide value (0 = no, 1 = yes, 2 = just special lines)
Returns
string Return total of line incl tax

Definition at line 2009 of file pdf.lib.php.

References price().

Referenced by pdf_cyan\write_file(), pdf_eratosthene\write_file(), and pdf_sponge\write_file().

pdf_getlineunit (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0,
  $hookmanager = false 
)

Return line unit.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
HookManager$hookmanagerHook manager instance
Returns
string Value for unit cell

Definition at line 1828 of file pdf.lib.php.

Referenced by pdf_cornas\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_sponge\write_file(), pdf_aurore\write_file(), pdf_muscadet\write_file(), pdf_azur\write_file(), pdf_einstein\write_file(), and pdf_crabe\write_file().

pdf_getlineupexcltax (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line unit price excluding tax.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1615 of file pdf.lib.php.

References price().

Referenced by pdf_eratosthene\defineColumnField(), pdf_cyan\defineColumnField(), pdf_sponge\defineColumnField(), pdf_cornas\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_sponge\write_file(), pdf_muscadet\write_file(), pdf_azur\write_file(), pdf_einstein\write_file(), and pdf_crabe\write_file().

pdf_getlineupwithtax (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line unit price including tax.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide value (0 = no, 1 = yes, 2 = just special lines)
Returns
string

Definition at line 1655 of file pdf.lib.php.

References price().

pdf_getlinevatrate (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line vat rate.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string

Definition at line 1556 of file pdf.lib.php.

References vatrate().

Referenced by pdf_standard\printLine(), pdf_cornas\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_sponge\write_file(), pdf_muscadet\write_file(), pdf_einstein\write_file(), pdf_azur\write_file(), and pdf_crabe\write_file().

pdf_getLinkedObjects (   $object,
  $outputlangs 
)

Return linked objects to use for document generation.

Warning: To save space, this function returns only one link per link type (all links are concated on same record string). This function is used by pdf_writeLinkedObjects

Parameters
object$objectObject
Translate$outputlangsObject lang for output
Returns
array Linked objects

Definition at line 2110 of file pdf.lib.php.

References dol_print_date().

Referenced by pdf_writeLinkedObjects().

pdf_getPDFFont (   $outputlangs)
pdf_getPDFFontSize (   $outputlangs)

Return font size to use for PDF generation.

Parameters
Translate$outputlangsOutput langs object
Returns
int Size of font to use

Definition at line 245 of file pdf.lib.php.

Referenced by pdf_merou\_pagefoot(), pdf_ban\_pagehead(), pdf_paiement\_pagehead(), pdf_merou\_pagehead(), pdf_baleine\_pagehead(), pdf_timespent\_pagehead(), pdf_sepamandate\_pagehead(), pdf_soleil\_pagehead(), pdf_strato\_pagehead(), pdf_standard\_pagehead(), pdf_typhon\_pagehead(), pdf_storm\_pagehead(), pdf_beluga\_pagehead(), pdf_squille\_pagehead(), pdf_standard_recruitmentjobposition\_pagehead(), pdf_espadon\_pagehead(), pdf_rouget\_pagehead(), pdf_standard_myobject\_pagehead(), pdf_stdandard\_pagehead(), pdf_canelle\_pagehead(), pdf_muscadet\_pagehead(), pdf_cornas\_pagehead(), pdf_einstein\_pagehead(), pdf_aurore\_pagehead(), pdf_eratosthene\_pagehead(), pdf_azur\_pagehead(), pdf_cyan\_pagehead(), pdf_crabe\_pagehead(), pdf_sponge\_pagehead(), pdf_sepamandate\_signature_area(), pdf_azur\_signature_area(), pdf_ban\_tableau(), pdf_sepamandate\_tableau(), pdf_merou\_tableau(), pdf_baleine\_tableau(), pdf_timespent\_tableau(), pdf_soleil\_tableau(), pdf_strato\_tableau(), pdf_typhon\_tableau(), pdf_squille\_tableau(), pdf_storm\_tableau(), pdf_beluga\_tableau(), pdf_standard_recruitmentjobposition\_tableau(), pdf_rouget\_tableau(), pdf_espadon\_tableau(), pdf_stdandard\_tableau(), pdf_standard_myobject\_tableau(), pdf_canelle\_tableau(), pdf_standard\_tableau(), pdf_muscadet\_tableau(), pdf_cornas\_tableau(), pdf_einstein\_tableau(), pdf_aurore\_tableau(), pdf_azur\_tableau(), pdf_eratosthene\_tableau(), pdf_cyan\_tableau(), pdf_crabe\_tableau(), pdf_sponge\_tableau(), pdf_standard\_tableau_cheque(), pdf_sepamandate\_tableau_info(), pdf_typhon\_tableau_info(), pdf_storm\_tableau_info(), pdf_einstein\_tableau_info(), pdf_muscadet\_tableau_info(), pdf_aurore\_tableau_info(), pdf_cornas\_tableau_info(), pdf_azur\_tableau_info(), pdf_crabe\_tableau_info(), pdf_squille\_tableau_tot(), pdf_canelle\_tableau_tot(), pdf_rouget\_tableau_tot(), pdf_espadon\_tableau_tot(), pdf_muscadet\_tableau_tot(), pdf_einstein\_tableau_tot(), pdf_aurore\_tableau_tot(), pdf_cornas\_tableau_tot(), pdf_azur\_tableau_tot(), pdf_crabe\_tableau_tot(), pdf_crabe\_tableau_versements(), pdf_canelle\_tableau_versements(), BordereauChequeBlochet\Body(), pdf_paiement\Body(), pdf_eratosthene\drawInfoTable(), pdf_cyan\drawInfoTable(), pdf_sponge\drawInfoTable(), pdf_sponge\drawPaymentsTable(), pdf_cyan\drawSignatureArea(), pdf_eratosthene\drawTotalTable(), pdf_cyan\drawTotalTable(), pdf_sponge\drawTotalTable(), BordereauChequeBlochet\Header(), pdf_standard\tablePayments(), pdf_paiement\write_file(), pdf_ban\write_file(), pdf_sepamandate\write_file(), pdf_squille\write_file(), pdf_timespent\write_file(), pdf_baleine\write_file(), pdf_beluga\write_file(), pdf_espadon\write_file(), pdf_merou\write_file(), pdf_soleil\write_file(), pdf_storm\write_file(), pdf_strato\write_file(), pdf_cornas\write_file(), pdf_typhon\write_file(), pdf_rouget\write_file(), pdf_stdandard\write_file(), pdf_standard_myobject\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_standard_recruitmentjobposition\write_file(), pdf_sponge\write_file(), pdf_aurore\write_file(), pdf_standard\write_file(), pdf_muscadet\write_file(), pdf_azur\write_file(), pdf_einstein\write_file(), and pdf_crabe\write_file().

pdf_getSizeForImage (   $realpath)

Return dimensions to use for images onto PDF checking that width and height are not higher than maximum (16x32 by default).

Parameters
string$realpathFull path to photo file to use
Returns
array Height and width to use to output image (in pdf user unit, so mm)

Definition at line 2221 of file pdf.lib.php.

References dol_getImageSize().

Referenced by pdf_squille\write_file(), pdf_espadon\write_file(), pdf_storm\write_file(), pdf_cornas\write_file(), pdf_rouget\write_file(), pdf_standard_myobject\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_standard_recruitmentjobposition\write_file(), pdf_sponge\write_file(), pdf_aurore\write_file(), pdf_muscadet\write_file(), pdf_azur\write_file(), and pdf_crabe\write_file().

pdf_getSubstitutionArray (   $outputlangs,
  $exclude = null,
  $object = null,
  $onlykey = 0 
)

Return array of possible substitutions for PDF content (without external module substitutions).

Parameters
Translate$outputlangsOutput language
array$excludeArray of family keys we want to exclude. For example array('mycompany', 'object', 'date', 'user', ...)
Object$objectObject
int$onlykey1=Do not calculate some heavy values of keys (performance enhancement when we need only the keys), 2=Values are truncated and html sanitized (to use for help tooltip)
Returns
array Array of substitutions

Definition at line 643 of file pdf.lib.php.

References getCommonSubstitutionArray().

Referenced by BordereauChequeBlochet\_pagefoot(), pdf_pagefoot(), pdf_watermark(), pdf_baleine\write_file(), pdf_timespent\write_file(), pdf_beluga\write_file(), pdf_soleil\write_file(), pdf_cornas\write_file(), pdf_stdandard\write_file(), pdf_standard_myobject\write_file(), pdf_cyan\write_file(), pdf_eratosthene\write_file(), pdf_canelle\write_file(), pdf_sponge\write_file(), pdf_standard_recruitmentjobposition\write_file(), pdf_aurore\write_file(), pdf_standard\write_file(), pdf_einstein\write_file(), pdf_azur\write_file(), and pdf_crabe\write_file().

pdf_getTotalQty (   $object,
  $type,
  $outputlangs 
)

Return total quantity of products and/or services.

Parameters
Object$objectObject
string$typeType
Translate$outputlangsObject langs for output
Returns
integer
Deprecated:
Not used by Dolibarr core, so will be removed.

Definition at line 2066 of file pdf.lib.php.

pdf_pagefoot ( $pdf,
  $outputlangs,
  $paramfreetext,
  $fromcompany,
  $marge_basse,
  $marge_gauche,
  $page_hauteur,
  $object,
  $showdetails = 0,
  $hidefreetext = 0 
)

Show footer of page for PDF generation.

Parameters
TCPDF$pdfThe PDF factory
Translate$outputlangsObject lang for output
string$paramfreetextConstant name of free text
Societe$fromcompanyObject company
int$marge_basseMargin bottom we use for the autobreak
int$marge_gaucheMargin left (no more used)
int$page_hauteurPage height (no more used)
Object$objectObject shown in PDF
int$showdetailsShow company adress details into footer (0=Nothing, 1=Show address, 2=Show managers, 3=Both)
int$hidefreetext1=Hide free text, 0=Show free text
Returns
int Return height of bottom margin including footer text

Definition at line 887 of file pdf.lib.php.

References complete_substitutions_array(), dol_htmlentitiesbr(), getFormeJuridiqueLabel(), make_substitutions(), pdf_getPDFFont(), pdf_getSubstitutionArray(), pdfGetHeightForHtmlContent(), price(), and price2num().

Referenced by BordereauChequeBlochet\_pagefoot(), pdf_timespent\_pagefoot(), pdf_baleine\_pagefoot(), pdf_sepamandate\_pagefoot(), pdf_soleil\_pagefoot(), pdf_strato\_pagefoot(), pdf_beluga\_pagefoot(), pdf_typhon\_pagefoot(), pdf_storm\_pagefoot(), pdf_squille\_pagefoot(), pdf_standard_recruitmentjobposition\_pagefoot(), pdf_espadon\_pagefoot(), pdf_standard\_pagefoot(), pdf_rouget\_pagefoot(), pdf_standard_myobject\_pagefoot(), pdf_stdandard\_pagefoot(), pdf_canelle\_pagefoot(), pdf_muscadet\_pagefoot(), pdf_cornas\_pagefoot(), pdf_aurore\_pagefoot(), pdf_einstein\_pagefoot(), pdf_azur\_pagefoot(), pdf_eratosthene\_pagefoot(), pdf_cyan\_pagefoot(), pdf_crabe\_pagefoot(), and pdf_sponge\_pagefoot().

pdf_pagehead ( $pdf,
  $outputlangs,
  $page_height 
)
pdf_watermark ( $pdf,
  $outputlangs,
  $h,
  $w,
  $unit,
  $text 
)
pdf_writelinedesc ( $pdf,
  $object,
  $i,
  $outputlangs,
  $w,
  $h,
  $posx,
  $posy,
  $hideref = 0,
  $hidedesc = 0,
  $issupplierline = 0 
)

Output line description into PDF.

Parameters
TCPDF$pdfPDF object
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject lang for output
int$wWidth
int$hHeight
int$posxPos x
int$posyPos y
int$hiderefHide reference
int$hidedescHide description
int$issupplierlineIs it a line for a supplier object ?
Returns
string

Definition at line 1174 of file pdf.lib.php.

References pdf_getlinedesc().

Referenced by CommonDocGenerator\printColDescContent(), pdf_squille\write_file(), pdf_merou\write_file(), pdf_storm\write_file(), pdf_typhon\write_file(), pdf_rouget\write_file(), pdf_standard\write_file(), pdf_stdandard\write_file(), pdf_canelle\write_file(), pdf_aurore\write_file(), pdf_muscadet\write_file(), pdf_einstein\write_file(), pdf_azur\write_file(), and pdf_crabe\write_file().

pdf_writeLinkedObjects ( $pdf,
  $object,
  $outputlangs,
  $posx,
  $posy,
  $w,
  $h,
  $align,
  $default_font_size 
)

Show linked objects for PDF generation.

Parameters
TCPDF$pdfObject PDF
object$objectObject
Translate$outputlangsObject lang
int$posxX
int$posyY
float$wWidth of cells. If 0, they extend up to the right margin of the page.
float$hCell minimum height. The cell extends automatically if needed.
int$alignAlign
string$default_font_sizeFont size
Returns
float The Y PDF position

Definition at line 1135 of file pdf.lib.php.

References pdf_getLinkedObjects().

Referenced by pdf_merou\_pagehead(), pdf_standard\_pagehead(), pdf_typhon\_pagehead(), pdf_storm\_pagehead(), pdf_standard_recruitmentjobposition\_pagehead(), pdf_standard_myobject\_pagehead(), pdf_canelle\_pagehead(), pdf_muscadet\_pagehead(), pdf_cornas\_pagehead(), pdf_einstein\_pagehead(), pdf_aurore\_pagehead(), pdf_eratosthene\_pagehead(), pdf_azur\_pagehead(), pdf_cyan\_pagehead(), pdf_crabe\_pagehead(), and pdf_sponge\_pagehead().

pdfBuildThirdpartyName (   $thirdparty,
Translate  $outputlangs,
  $includealias = 0 
)
pdfGetHeightForHtmlContent ( $pdf,
  $htmlcontent 
)

Function to try to calculate height of a HTML Content.

Parameters
TCPDF$pdfPDF initialized object
string$htmlcontentHTML Contect
Returns
int Height
See Also
getStringHeight()

Definition at line 294 of file pdf.lib.php.

Referenced by pdf_pagefoot(), pdf_cyan\write_file(), and pdf_azur\write_file().

pdfGetLineTotalDiscountAmount (   $object,
  $i,
  $outputlangs,
  $hidedetails = 0 
)

Return line total amount discount.

Parameters
Object$objectObject
int$iCurrent line number
Translate$outputlangsObject langs for output
int$hidedetailsHide details (0=no, 1=yes, 2=just special lines)
Returns
string Return total of line excl tax

Definition at line 2253 of file pdf.lib.php.

Referenced by pdf_sponge\drawTotalTable().