dolibarr  7.0.0-beta
Functions
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=0, $filesuffix='', $paymentbankid='', $thirdpartiesid='', $fileprefix='mergedpdf')
 Function to build a compiled PDF. More...
 

Detailed Description

Function to rebuild PDF and merge PDF files into one.

Definition in file invoice2.lib.php.

Function Documentation

rebuild_merge_pdf (   $db,
  $langs,
  $conf,
  $diroutputpdf,
  $newlangid,
  $filter,
  $dateafterdate,
  $datebeforedate,
  $paymentdateafter,
  $paymentdatebefore,
  $usestdout,
  $regenerate = 0,
  $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
date$dateafterdateInvoice after date
date$datebeforedateInvoice before date
date$paymentdateafterPayment after date (must includes hour)
date$paymentdatebeforePayment before date (must includes hour)
int$usestdoutAdd information onto standard output
int$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 onlythirdpartiesid
string$fileprefixPrefix to add into filename of generated PDF
Returns
int Error code

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

References $resql, dol_is_file(), dol_mkdir(), dol_print_error(), dol_syslog(), pdf_getFormat(), pdf_getInstance(), pdf_getPDFFont(), and print.