• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP pdf_getFormat函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中pdf_getFormat函数的典型用法代码示例。如果您正苦于以下问题:PHP pdf_getFormat函数的具体用法?PHP pdf_getFormat怎么用?PHP pdf_getFormat使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了pdf_getFormat函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
 }
开发者ID:abbenbouchta,项目名称:immobilier,代码行数:33,代码来源:pdf_quittance.modules.php


示例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;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:32,代码来源:pdf_expedition_rouget.modules.php


示例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;
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:35,代码来源:pdf_blochet.class.php


示例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();
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:33,代码来源:pdf_sirocco.modules.php


示例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;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:35,代码来源:pdf_blochet.class.php


示例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
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:30,代码来源:pdf_expedition_merou.modules.php


示例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;
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:32,代码来源:pdf_rouget.modules.php


示例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;
     }
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:39,代码来源:pdf_paiement.class.php


示例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;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:63,代码来源:pdf_azur.modules.php


示例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;
 }
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:60,代码来源:pdf_canelle.modules.php


示例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;
 }
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:59,代码来源:pdf_typhon.modules.php


示例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;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:59,代码来源:pdf_canelle.modules.php


示例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;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:50,代码来源:pdf_typhon.modules.php


示例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;
 }
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:44,代码来源:pdf_soleil.modules.php


示例16: __construct

 /**
  * Constructor
  *
  * @param 	DoliDB	$db		Database handler
  * @param	int		$month	Month
  * @param	int		$year	Year
  */
 function __construct($db, $month, $year)
 {
     global $conf, $langs;
     $langs->load("commercial");
     $this->db = $db;
     $this->description = "";
     $this->date_edition = time();
     $this->month = $month;
     $this->year = $year;
     // 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->title = $langs->transnoentitiesnoconv("ActionsReport") . ' ' . $this->year . "-" . $this->month;
     $this->subject = $langs->transnoentitiesnoconv("ActionsReport") . ' ' . $this->year . "-" . $this->month;
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:29,代码来源:rapport.pdf.php


示例17: __construct

 /**
  *	Constructor
  *
  *  @param		DoliDB		$db      Database handler
  */
 function __construct($db)
 {
     global $conf, $langs, $mysoc;
     $langs->load("main");
     $langs->load("projects");
     $langs->load("companies");
     $this->db = $db;
     $this->name = "baleine";
     $this->description = $langs->trans("DocumentModelBaleine");
     // 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
     // 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->posxref = $this->marge_gauche + 1;
     $this->posxlabel = $this->marge_gauche + 25;
     $this->posxworkload = $this->marge_gauche + 100;
     $this->posxprogress = $this->marge_gauche + 130;
     $this->posxdatestart = $this->marge_gauche + 150;
     $this->posxdateend = $this->marge_gauche + 170;
 }
开发者ID:Albertopf,项目名称:prueba,代码行数:44,代码来源:pdf_baleine.modules.php


示例18: __construct

 /**
  * 	Constructor
  *
  *	@param		DoliDb	$db		Database access handler
  */
 function __construct($db = 0)
 {
     global $conf, $langs, $mysoc;
     $langs->load("main");
     $langs->load("bills");
     $this->db = $db;
     $this->name = "edison";
     $this->description = $langs->trans('PDFEdisonDescription');
     // 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_multilang = 0;
     // Dispo en plusieurs langues
     $this->option_draft_watermark = 1;
     //Support add of a watermark on drafts
     // Recupere emmetteur
     $this->emetteur = $mysoc;
     if (!$this->emetteur->pays_code) {
         $this->emetteur->pays_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->atleastoneratenotnull = 0;
     $this->atleastonediscount = 0;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:44,代码来源:pdf_edison.modules.php


示例19: __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 = 10;
     $this->marge_droite = 10;
     $this->marge_haute = 10;
     $this->marge_basse = 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 = 0;
     // Dispo en plusieurs langues
     $this->option_draft_watermark = 1;
     //Support add of a watermark on drafts
     // Recupere emmetteur
     $this->emetteur = $mysoc;
     if (!$this->emetteur->code_pays) {
         $this->emetteur->code_pays = substr($langs->defaultlang, -2);
     }
     // By default, if not defined
     // Defini position des colonnes
     $this->posxdesc = $this->marge_gauche + 1;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:44,代码来源:pdf_soleil.modules.php


示例20: __construct

 /**
  *	Constructor
  *
  *  @param		DoliDB		$db      Database handler
  */
 function __construct($db)
 {
     global $conf, $langs, $mysoc;
     $langs->load("main");
     $langs->load("projects");
     $langs->load("companies");
     $this->db = $db;
     $this->name = "baleine";
     $this->description = $langs->trans("DocumentModelBaleine");
     // 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
     // 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->posxref = $this->marge_gauche + 1;
     $this->posxlabel = $this->marge_gauche + 25;
     $this->posxprogress = $this->marge_gauche + 140;
     $this->posxdatestart = $this->marge_gauche + 150;
     $this->posxdateend = $this->marge_gauche + 170;
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:43,代码来源:pdf_baleine.modules.php



注:本文中的pdf_getFormat函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP pdf_getHeightForLogo函数代码示例发布时间:2022-05-15
下一篇:
PHP pdf_findfont函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap