Add hidden option MAIN_USE_BACKGROUND_ON_PDF

This commit is contained in:
Laurent Destailleur
2009-06-15 18:57:34 +00:00
parent 70c4f0bd93
commit f22aa12c2d
14 changed files with 71 additions and 5 deletions

View File

@@ -20,12 +20,31 @@
*/
/**
* \file htdocs/lib/company.lib.php
* \brief Ensemble de fonctions de base pour le module societe
* \ingroup societe
* \file htdocs/lib/pdf.lib.php
* \brief Set of functions used for PDF generation
* \ingroup core
* \version $Id$
*/
/**
* \brief Show header of page for PDF generation
* \param pdf Object PDF
* \param outputlang Object lang for output
* \param page_height
*/
function pdf_pagehead(&$pdf,$outputlangs,$page_height)
{
global $conf;
// Add a background image on document
if (! empty($conf->global->MAIN_USE_BACKGROUND_ON_PDF))
{
$pdf->Image($conf->societe->dir_output.'/logos/'.$conf->global->MAIN_USE_BACKGROUND_ON_PDF, 0, 0, 0, $page_height);
}
}
/**
* \brief Show bank informations for PDF generation
*/
@@ -269,9 +288,9 @@ function pdf_getlinedesc($line,$outputlangs,$showref=1)
$prefix_prodserv = $outputlangs->transnoentitiesnoconv("Product")." ";
}
}
if ($showref) $ref_prodserv = $prodser->ref." - ";
$libelleproduitservice=$prefix_prodserv.$ref_prodserv.$libelleproduitservice;
}
}