本文整理汇总了PHP中pdf_getFormat函数的典型用法代码示例。如果您正苦于以下问题:PHP pdf_getFormat函数的具体用法?PHP pdf_getFormat怎么用?PHP pdf_getFormat使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pdf_getFormat函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* \brief Constructor
* \param db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("immobilier@immobilier");
$this->db = $db;
$this->name = 'quitance';
$this->description = $langs->trans('Quittance');
// Dimension page pour format A4 en portrait
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 15;
$this->marge_droite = 15;
$this->marge_haute = 10;
$this->marge_basse = 10;
$this->unit = 'mm';
$this->oriantation = 'P';
$this->espaceH_dispo = $this->page_largeur - ($this->marge_gauche + $this->marge_droite);
$this->milieu = $this->espaceH_dispo / 2;
$this->espaceV_dispo = $this->page_hauteur - ($this->marge_haute + $this->marge_basse);
// Get source company
$this->emetteur = $mysoc;
if (!$this->emetteur->country_code) {
$this->emetteur->country_code = substr($langs->defaultlang, -2);
}
// By default, if was not defined
}
示例2: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db = 0)
{
global $conf, $langs, $mysoc;
$this->db = $db;
$this->name = "rouget";
$this->description = $langs->trans("DocumentModelSimple");
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 10;
$this->marge_droite = 10;
$this->marge_haute = 10;
$this->marge_basse = 10;
$this->option_logo = 1;
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->pays_code) {
$this->emetteur->pays_code = substr($langs->defaultlang, -2);
}
// By default if not defined
// Defini position des colonnes
$this->posxdesc = $this->marge_gauche + 1;
$this->posxqtyordered = 120;
$this->posxqtytoship = 160;
}
示例3: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$this->db = $db;
$this->name = "blochet";
$this->tab_top = 60;
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = isset($conf->global->MAIN_PDF_MARGIN_LEFT) ? $conf->global->MAIN_PDF_MARGIN_LEFT : 10;
$this->marge_droite = isset($conf->global->MAIN_PDF_MARGIN_RIGHT) ? $conf->global->MAIN_PDF_MARGIN_RIGHT : 10;
$this->marge_haute = isset($conf->global->MAIN_PDF_MARGIN_TOP) ? $conf->global->MAIN_PDF_MARGIN_TOP : 10;
$this->marge_basse = isset($conf->global->MAIN_PDF_MARGIN_BOTTOM) ? $conf->global->MAIN_PDF_MARGIN_BOTTOM : 10;
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->country_code) {
$this->emetteur->country_code = substr($langs->defaultlang, -2);
}
// By default if not defined
// Defini position des colonnes
$this->line_height = 5;
$this->line_per_page = 40;
$this->tab_height = 200;
//$this->line_height * $this->line_per_page;
}
示例4: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$langs->load("sendings");
$langs->load("companies");
$this->db = $db;
$this->name = "sirocco";
$this->description = $langs->trans("DocumentModelSirocco");
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 10;
$this->marge_droite = 10;
$this->marge_haute = 10;
$this->marge_basse = 10;
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->pays_code) {
$this->emetteur->pays_code = substr($langs->defaultlang, -2);
}
// Par defaut, si n'�tait pas d�fini
$this->tva = array();
}
示例5: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$this->db = $db;
$this->name = "blochet";
$this->tab_top = 60;
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 10;
$this->marge_droite = 20;
$this->marge_haute = 10;
$this->marge_basse = 10;
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->pays_code) {
$this->emetteur->pays_code = substr($langs->defaultlang, -2);
}
// Par defaut, si n'�tait pas d�fini
// Defini position des colonnes
$this->line_height = 5;
$this->line_per_page = 40;
$this->tab_height = 200;
//$this->line_height * $this->line_per_page;
}
示例6: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db = 0)
{
global $conf, $langs, $mysoc;
$this->db = $db;
$this->name = "merou";
//$this->description = "Modele Merou A5";
$this->description = $langs->trans("DocumentModelMerou");
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = round($formatarray['height'] / 2);
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 10;
$this->marge_droite = 10;
$this->marge_haute = 10;
$this->marge_basse = 10;
$this->option_logo = 1;
// Affiche logo
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->pays_code) {
$this->emetteur->pays_code = substr($langs->defaultlang, -2);
}
// By default if not defined
}
示例7: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db = 0)
{
global $conf, $langs, $mysoc;
$this->db = $db;
$this->name = "rouget";
$this->description = $langs->trans("DocumentModelSimple");
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = isset($conf->global->MAIN_PDF_MARGIN_LEFT) ? $conf->global->MAIN_PDF_MARGIN_LEFT : 10;
$this->marge_droite = isset($conf->global->MAIN_PDF_MARGIN_RIGHT) ? $conf->global->MAIN_PDF_MARGIN_RIGHT : 10;
$this->marge_haute = isset($conf->global->MAIN_PDF_MARGIN_TOP) ? $conf->global->MAIN_PDF_MARGIN_TOP : 10;
$this->marge_basse = isset($conf->global->MAIN_PDF_MARGIN_BOTTOM) ? $conf->global->MAIN_PDF_MARGIN_BOTTOM : 10;
$this->option_logo = 1;
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->country_code) {
$this->emetteur->country_code = substr($langs->defaultlang, -2);
}
// By default if not defined
// Defini position des colonnes
$this->posxdesc = $this->marge_gauche + 1;
$this->posxqtyordered = $this->page_largeur - $this->marge_droite - 70;
$this->posxqtytoship = $this->page_largeur - $this->marge_droite - 35;
}
示例8: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db = 0)
{
global $conf, $langs, $mysoc;
$this->db = $db;
$this->name = "BerryPro-A4-SinVal";
$this->description = "BerryPro A4 Sin Valorar";
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = isset($conf->global->MAIN_PDF_MARGIN_LEFT) ? $conf->global->MAIN_PDF_MARGIN_LEFT : 10;
$this->marge_droite = isset($conf->global->MAIN_PDF_MARGIN_RIGHT) ? $conf->global->MAIN_PDF_MARGIN_RIGHT : 10;
$this->marge_haute = isset($conf->global->MAIN_PDF_MARGIN_TOP) ? $conf->global->MAIN_PDF_MARGIN_TOP : 10;
$this->marge_basse = isset($conf->global->MAIN_PDF_MARGIN_BOTTOM) ? $conf->global->MAIN_PDF_MARGIN_BOTTOM : 10;
$this->option_logo = 1;
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->pays_code) {
$this->emetteur->pays_code = substr($langs->defaultlang, -2);
}
// By default if not defined
// Defini position des colonnes
$this->posxdesc = $this->marge_gauche + 1;
$this->posxqtyordered = $this->page_largeur - $this->marge_droite - 77;
$this->posxqtytoship = $this->page_largeur - $this->marge_droite - 63;
$this->posxup = $this->page_largeur - $this->marge_droite - 49;
$this->posxtotalht = $this->page_largeur - $this->marge_droite - 29;
}
开发者ID:sergioeugenio,项目名称:Dolibarr37_berrypro_Modulo,代码行数:34,代码来源:pdf_expedition_berrypro_a4sv.modules.php
示例9: __construct
/**
* Constructor
*
* @param DoliDb $db Database handler
*/
function __construct($db)
{
global $langs, $conf;
$langs->load("bills");
$langs->load("compta");
$this->db = $db;
$this->description = $langs->transnoentities("ListOfCustomerPayments");
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = isset($conf->global->MAIN_PDF_MARGIN_LEFT) ? $conf->global->MAIN_PDF_MARGIN_LEFT : 10;
$this->marge_droite = isset($conf->global->MAIN_PDF_MARGIN_RIGHT) ? $conf->global->MAIN_PDF_MARGIN_RIGHT : 10;
$this->marge_haute = isset($conf->global->MAIN_PDF_MARGIN_TOP) ? $conf->global->MAIN_PDF_MARGIN_TOP : 10;
$this->marge_basse = isset($conf->global->MAIN_PDF_MARGIN_BOTTOM) ? $conf->global->MAIN_PDF_MARGIN_BOTTOM : 10;
$this->tab_top = 30;
$this->line_height = 5;
$this->line_per_page = 25;
$this->tab_height = 230;
//$this->line_height * $this->line_per_page;
$this->posxdate = $this->marge_gauche + 2;
$this->posxpaymenttype = 42;
$this->posxinvoice = 82;
$this->posxinvoiceamount = 122;
$this->posxpaymentamount = 162;
if ($this->page_largeur < 210) {
$this->posxpaymenttype -= 10;
$this->posxinvoice -= 0;
$this->posxinvoiceamount -= 10;
$this->posxpaymentamount -= 20;
}
}
示例10: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$this->db = $db;
$this->name = "azur";
$this->description = $langs->trans('DocModelAzurDescription');
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 10;
$this->marge_droite = 10;
$this->marge_haute = 10;
$this->marge_basse = 10;
$this->option_logo = 1;
// Affiche logo
$this->option_tva = 1;
// Gere option tva FACTURE_TVAOPTION
$this->option_modereg = 1;
// Affiche mode reglement
$this->option_condreg = 1;
// Affiche conditions reglement
$this->option_codeproduitservice = 1;
// Affiche code produit-service
$this->option_multilang = 1;
// Dispo en plusieurs langues
$this->option_escompte = 1;
// Affiche si il y a eu escompte
$this->option_credit_note = 1;
// Gere les avoirs
$this->option_freetext = 1;
// Support add of a personalised text
$this->option_draft_watermark = 1;
//Support add of a watermark on drafts
$this->franchise = !$mysoc->tva_assuj;
// Recupere emetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->pays_code) {
$this->emetteur->pays_code = substr($langs->defaultlang, -2);
}
// Par defaut, si n'etait pas defini
// Defini position des colonnes
$this->posxdesc = $this->marge_gauche + 1;
$this->posxtva = 111;
$this->posxup = 126;
$this->posxqty = 145;
$this->posxdiscount = 162;
$this->postotalht = 174;
$this->tva = array();
$this->localtax1 = array();
$this->localtax2 = array();
$this->atleastoneratenotnull = 0;
$this->atleastonediscount = 0;
}
示例11: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$this->db = $db;
$this->name = "canelle";
$this->description = $langs->trans('SuppliersInvoiceModel');
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = isset($conf->global->MAIN_PDF_MARGIN_LEFT) ? $conf->global->MAIN_PDF_MARGIN_LEFT : 10;
$this->marge_droite = isset($conf->global->MAIN_PDF_MARGIN_RIGHT) ? $conf->global->MAIN_PDF_MARGIN_RIGHT : 10;
$this->marge_haute = isset($conf->global->MAIN_PDF_MARGIN_TOP) ? $conf->global->MAIN_PDF_MARGIN_TOP : 10;
$this->marge_basse = isset($conf->global->MAIN_PDF_MARGIN_BOTTOM) ? $conf->global->MAIN_PDF_MARGIN_BOTTOM : 10;
$this->option_logo = 1;
// Affiche logo
$this->option_tva = 1;
// Gere option tva FACTURE_TVAOPTION
$this->option_modereg = 1;
// Affiche mode reglement
$this->option_condreg = 1;
// Affiche conditions reglement
$this->option_codeproduitservice = 1;
// Affiche code produit-service
$this->option_multilang = 1;
// Dispo en plusieurs langues
$this->franchise = !$mysoc->tva_assuj;
// Defini position des colonnes
$this->posxdesc = $this->marge_gauche + 1;
$this->posxtva = 112;
$this->posxup = 126;
$this->posxqty = 145;
$this->posxdiscount = 162;
$this->postotalht = 174;
//if (! empty($conf->global->MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT)) $this->posxtva=$this->posxup;
$this->posxpicture = $this->posxtva - (empty($conf->global->MAIN_DOCUMENTS_WITH_PICTURE_WIDTH) ? 20 : $conf->global->MAIN_DOCUMENTS_WITH_PICTURE_WIDTH);
// width of images
if ($this->page_largeur < 210) {
$this->posxpicture -= 20;
$this->posxtva -= 20;
$this->posxup -= 20;
$this->posxqty -= 20;
$this->posxdiscount -= 20;
$this->postotalht -= 20;
}
$this->tva = array();
$this->localtax1 = array();
$this->localtax2 = array();
$this->atleastoneratenotnull = 0;
$this->atleastonediscount = 0;
}
示例12: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$langs->load("sendings");
$langs->load("companies");
$this->db = $db;
$this->name = "typhon";
$this->description = $langs->trans("DocumentModelTyphon");
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = isset($conf->global->MAIN_PDF_MARGIN_LEFT) ? $conf->global->MAIN_PDF_MARGIN_LEFT : 10;
$this->marge_droite = isset($conf->global->MAIN_PDF_MARGIN_RIGHT) ? $conf->global->MAIN_PDF_MARGIN_RIGHT : 10;
$this->marge_haute = isset($conf->global->MAIN_PDF_MARGIN_TOP) ? $conf->global->MAIN_PDF_MARGIN_TOP : 10;
$this->marge_basse = isset($conf->global->MAIN_PDF_MARGIN_BOTTOM) ? $conf->global->MAIN_PDF_MARGIN_BOTTOM : 10;
$this->option_logo = 1;
// Affiche logo FAC_PDF_LOGO
$this->option_tva = 1;
// Gere option tva FACTURE_TVAOPTION
$this->option_codeproduitservice = 1;
// Affiche code produit-service
$this->franchise = !$mysoc->tva_assuj;
// Get source company
$this->emetteur = $mysoc;
if (empty($this->emetteur->country_code)) {
$this->emetteur->country_code = substr($langs->defaultlang, -2);
}
// By default, if was not defined
// Define position of columns
$this->posxdesc = $this->marge_gauche + 1;
$this->posxcomm = 112;
//$this->posxtva=112;
//$this->posxup=126;
$this->posxqty = 165;
$this->posxremainingqty = 185;
//$this->posxdiscount=162;
//$this->postotalht=174;
if ($this->page_largeur < 210) {
$this->posxcomm -= 20;
//$this->posxtva-=20;
//$this->posxup-=20;
$this->posxqty -= 20;
//$this->posxdiscount-=20;
//$this->postotalht-=20;
}
$this->tva = array();
$this->atleastoneratenotnull = 0;
$this->atleastonediscount = 0;
}
示例13: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
* @param Societe $object Supplier invoice
*/
function __construct($db, $object)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$this->db = $db;
$this->name = "canelle";
$this->description = $langs->trans('SuppliersInvoiceModel');
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 10;
$this->marge_droite = 10;
$this->marge_haute = 10;
$this->marge_basse = 10;
$this->option_logo = 1;
// Affiche logo
$this->option_tva = 1;
// Gere option tva FACTURE_TVAOPTION
$this->option_modereg = 1;
// Affiche mode reglement
$this->option_condreg = 1;
// Affiche conditions reglement
$this->option_codeproduitservice = 1;
// Affiche code produit-service
$this->option_multilang = 1;
// Dispo en plusieurs langues
$this->franchise = !$mysoc->tva_assuj;
// Get source company
if (!is_object($object->thirdparty)) {
$object->fetch_thirdparty();
}
$this->emetteur = $object->thirdparty;
if (!$this->emetteur->country_code) {
$this->emetteur->country_code = substr($langs->defaultlang, -2);
}
// By default, if was not defined
// Defini position des colonnes
$this->posxdesc = $this->marge_gauche + 1;
$this->posxtva = 111;
$this->posxup = 126;
$this->posxqty = 145;
$this->posxdiscount = 162;
$this->postotalht = 174;
$this->tva = array();
$this->localtax1 = array();
$this->localtax2 = array();
$this->atleastoneratenotnull = 0;
$this->atleastonediscount = 0;
}
示例14: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$langs->load("main");
$langs->load("bills");
$langs->load("sendings");
$langs->load("companies");
$this->db = $db;
$this->name = "typhon";
$this->description = $langs->trans("DocumentModelTyphon");
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = 10;
$this->marge_droite = 10;
$this->marge_haute = 10;
$this->marge_basse = 10;
$this->option_logo = 1;
// Affiche logo FAC_PDF_LOGO
$this->option_tva = 1;
// Gere option tva FACTURE_TVAOPTION
$this->option_codeproduitservice = 1;
// Affiche code produit-service
$this->franchise = !$mysoc->tva_assuj;
// Recupere emmetteur
$this->emetteur = $mysoc;
if (!$this->emetteur->pays_code) {
$this->emetteur->pays_code = substr($langs->defaultlang, -2);
}
// Par defaut, si n'�tait pas d�fini
// Defini position des colonnes
$this->posxdesc = $this->marge_gauche + 1;
$this->posxcomm = 120;
//$this->posxtva=111;
$this->posxup = 132;
$this->posxqty = 168;
$this->posxdiscount = 162;
$this->postotalht = 177;
$this->tva = array();
$this->atleastoneratenotnull = 0;
$this->atleastonediscount = 0;
}
示例15: __construct
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function __construct($db)
{
global $conf, $langs, $mysoc;
$this->db = $db;
$this->name = 'soleil';
$this->description = $langs->trans("DocumentModelStandard");
// Dimension page pour format A4
$this->type = 'pdf';
$formatarray = pdf_getFormat();
$this->page_largeur = $formatarray['width'];
$this->page_hauteur = $formatarray['height'];
$this->format = array($this->page_largeur, $this->page_hauteur);
$this->marge_gauche = isset($conf->global->MAIN_PDF_MARGIN_LEFT) ? $conf->global->MAIN_PDF_MARGIN_LEFT : 10;
$this->marge_droite = isset($conf->global->MAIN_PDF_MARGIN_RIGHT) ? $conf->global->MAIN_PDF_MARGIN_RIGHT : 10;
$this->marge_haute = isset($conf->global->MAIN_PDF_MARGIN_TOP) ? $conf->global->MAIN_PDF_MARGIN_TOP : 10;
$this->marge_basse = isset($conf->global->MAIN_PDF_MARGIN_BOTTOM) ? $conf->global->MAIN_PDF_MARGIN_BOTTOM : 10;
$this->option_logo = 1;
// Affiche logo
$this->option_tva = 0;
// Gere option tva FACTURE_TVAOPTION
$this->option_modereg = 0;
// Affiche mode reglement
$this->option_condreg = 0;
// Affiche conditions reglement
$this->option_codeproduitservice = 0;
// Affiche code produit-service
$this->option_multilang = 1;
// Dispo en plusieurs langues
$this->option_draft_watermark = 1;
//Support add of a watermark on drafts
// Get source company
$this->emetteur = $mysoc;
if (empty($this->emetteur->country_code)) {
$this->emetteur->country_code = substr($langs->defaultlang, -2);
}
// By default, if not defined
// Define position of columns
$this->posxdesc = $this->marge_gauche + 1;
}