Fix: Not enought space for free text. To avoid to edit again and again
value for all templates, I added an option to be able to fix template onto production when space is not enough. Conflicts: htdocs/core/modules/action/rapport.pdf.php htdocs/core/modules/cheque/pdf/pdf_blochet.class.php htdocs/core/modules/commande/doc/pdf_einstein.modules.php htdocs/core/modules/expedition/doc/pdf_expedition_merou.modules.php htdocs/core/modules/expedition/doc/pdf_expedition_rouget.modules.php htdocs/core/modules/facture/doc/pdf_crabe.modules.php htdocs/core/modules/fichinter/doc/pdf_soleil.modules.php htdocs/core/modules/livraison/pdf/pdf_typhon.modules.php htdocs/core/modules/project/pdf/pdf_baleine.modules.php htdocs/core/modules/propale/doc/pdf_azur.modules.php htdocs/core/modules/supplier_invoice/pdf/pdf_canelle.modules.php htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php
This commit is contained in:
parent
1997b029c7
commit
91fdb6a569
@ -114,6 +114,11 @@ class CommActionRapport
|
||||
{
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
{
|
||||
$pdf->setPrintHeader(false);
|
||||
|
||||
@ -119,6 +119,11 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
|
||||
// Create PDF instance
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
{
|
||||
$pdf->setPrintHeader(false);
|
||||
|
||||
@ -187,8 +187,8 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
// Create pdf instance
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -148,8 +148,8 @@ class pdf_expedition_merou extends ModelePdfExpedition
|
||||
|
||||
$pdf=pdf_getInstance($this->format,'mm','l');
|
||||
$heightforinfotot = 0; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -134,8 +134,8 @@ class pdf_expedition_rouget extends ModelePdfExpedition
|
||||
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 0; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -187,8 +187,8 @@ class pdf_crabe extends ModelePDFFactures
|
||||
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -141,7 +141,8 @@ class pdf_soleil extends ModelePDFFicheinter
|
||||
{
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfooter = 25; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:25); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -151,8 +151,8 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
{
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -128,8 +128,8 @@ class pdf_baleine extends ModelePDFProjects
|
||||
{
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -186,8 +186,8 @@ class pdf_azur extends ModelePDFPropales
|
||||
// Create pdf instance
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -185,8 +185,8 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
|
||||
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
@ -197,8 +197,8 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
|
||||
|
||||
$pdf=pdf_getInstance($this->format);
|
||||
$heightforinfotot = 50; // Height reserved to output the info and total part
|
||||
$heightforfreetext= 5; // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 10; // Height reserved to output the footer (value include bottom margin)
|
||||
$heightforfreetext= (isset($conf->global->MAIN_PDF_FREETEXT_HEIGHT)?$conf->global->MAIN_PDF_FREETEXT_HEIGHT:5); // Height reserved to output the free text on last page
|
||||
$heightforfooter = $this->marge_basse + 8; // Height reserved to output the footer (value include bottom margin)
|
||||
$pdf->SetAutoPageBreak(1,0);
|
||||
|
||||
if (class_exists('TCPDF'))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user