dolibarr 21.0.0-alpha
invoice2.lib.php File Reference

Function to rebuild PDF and merge PDF files into one. More...

Go to the source code of this file.

Functions

 rebuild_merge_pdf ($db, $langs, $conf, $diroutputpdf, $newlangid, $filter, $dateafterdate, $datebeforedate, $paymentdateafter, $paymentdatebefore, $usestdout, $regenerate='', $filesuffix='', $paymentbankid='', $thirdpartiesid=[], $fileprefix='mergedpdf')
 Function to build a compiled PDF.
 

Detailed Description

Function to rebuild PDF and merge PDF files into one.

Definition in file invoice2.lib.php.

Function Documentation

◆ rebuild_merge_pdf()

rebuild_merge_pdf ( $db,
$langs,
$conf,
$diroutputpdf,
$newlangid,
$filter,
$dateafterdate,
$datebeforedate,
$paymentdateafter,
$paymentdatebefore,
$usestdout,
$regenerate = '',
$filesuffix = '',
$paymentbankid = '',
$thirdpartiesid = [],
$fileprefix = 'mergedpdf' )

Function to build a compiled PDF.

Parameters
DoliDB$dbDatabase handler
Translate$langsObject langs
Conf$confObject conf
string$diroutputpdfDir to output file
string$newlangidLang id
array$filterArray with filters
integer$dateafterdateInvoice after date
integer$datebeforedateInvoice before date
integer$paymentdateafterPayment after date (must includes hour)
integer$paymentdatebeforePayment before date (must includes hour)
int$usestdoutAdd information onto standard output
string$regenerate''=Use existing PDF files, 'nameofpdf'=Regenerate all PDF files using the template
string$filesuffixSuffix to add into file name of generated PDF
string$paymentbankidOnly if payment on this bank account id
array$thirdpartiesidList of thirdparties id when using filter=excludethirdpartiesid or filter=onlythirdpartiesid
string$fileprefixPrefix to add into filename of generated PDF
Returns
int Error code

Definition at line 52 of file invoice2.lib.php.

References dol_is_file(), dol_mkdir(), dol_print_error(), dol_syslog(), dolChmod(), getDolGlobalString(), pdf_getFormat(), pdf_getInstance(), and pdf_getPDFFont().