当前位置: 首页>>代码示例>>PHP>>正文


PHP FPDI::__construct方法代码示例

本文整理汇总了PHP中FPDI::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FPDI::__construct方法的具体用法?PHP FPDI::__construct怎么用?PHP FPDI::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FPDI的用法示例。


在下文中一共展示了FPDI::__construct方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * class constructor
  *
  * @param string  $orientation page orientation, same as TCPDF
  * @param string  $unit        User measure unit, same as TCPDF
  * @param mixed   $format      The format used for pages, same as TCPDF
  * @param boolean $unicode     TRUE means that the input text is unicode (default = true)
  * @param String  $encoding    charset encoding; default is UTF-8
  * @param boolean $diskcache   if TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).
  * @access public
  */
 public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = true, $encoding = 'UTF-8', $diskcache = false)
 {
     // call the parent constructor
     parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
     // init the specific parameters used by HTML2PDF
     $this->SetCreator(PDF_CREATOR);
     $this->SetAutoPageBreak(false, 0);
     $this->linestyleCap = '2 J';
     $this->setPrintHeader(false);
     $this->jpeg_quality = 90;
     // prepare the automatic footer
     $this->SetMyFooter();
     $this->setCellPaddings(0, 0, 0, 0);
     $this->setCellMargins(0, 0, 0, 0);
 }
开发者ID:mi-squared,项目名称:openemr,代码行数:26,代码来源:myPdf.class.php

示例2:

 function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $copy = false)
 {
     if (file_exists(Util::getRootPath() . "ubiquitous/Fonts/")) {
         # AND !defined("FPDF_FONTPATH")) {
         #define('FPDF_FONTPATH', Util::getRootPath()."ubiquitous/Fonts/");
         $this->AddFont("Ubuntu", "", "5e01bde68449bff64cefe374f81b7847_ubuntu-regular.php");
         $this->AddFont("Ubuntu", "B", "70fed3593f0725ddea7da8f1c62577c1_ubuntu-bold.php");
         $this->AddFont("Ubuntu", "I", "cfa4d284ee1dc737cb0fe903fbab1844_ubuntu-italic.php");
         $this->AddFont("Ubuntu", "BI", "c409dbcbee5b5ac6bf7b101817c7416a_ubuntu-bolditalic.php");
         $this->AddFont("Orbitron", "", "667a54623e1b9927fdf078125bbbf49b_orbitron-regular.php");
         $this->AddFont("Orbitron", "B", "c4c6025fc06df62e82ebf42b2709e6ae_orbitron-bold.php");
         $this->AddFont("Orbitron", "I", "c4c6025fc06df62e82ebf42b2709e6ae_orbitron-fakeItalic.php");
         $this->AddFont("Orbitron", "BI", "c4c6025fc06df62e82ebf42b2709e6ae_orbitron-fakeBoldItalic.php");
         $this->AddFont("Raleway", "", "ed7ad2408e498cae8fab623a755883f6_raleway-thin.php");
         $this->AddFont("Raleway", "B", "ed7ad2408e498cae8fab623a755883f6_raleway-thin-fakeBold.php");
         $this->AddFont("Raleway", "I", "ed7ad2408e498cae8fab623a755883f6_raleway-thin-fakeItalic.php");
         $this->AddFont("Raleway", "BI", "ed7ad2408e498cae8fab623a755883f6_raleway-thin-fakeBoldItalic.php");
     }
     parent::__construct($orientation, $unit, $format, $copy);
 }
开发者ID:nemiah,项目名称:projectMankind,代码行数:20,代码来源:FormattedTextPDF.class.php

示例3: __construct

 /**
  * This method overrides the parent constructor method.
  * this is need to reset the default values.
  */
 public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4', $unicode = TRUE, $encoding = 'UTF-8', $diskcache = FALSE)
 {
     parent::__construct($orientation, $unit, $format, $unicode, $encoding, $diskcache);
     $this->defaultOrientation = $orientation;
     $this->defaultFormat = $format;
 }
开发者ID:kastowo,项目名称:idbigdata,代码行数:10,代码来源:views_pdf_template.php

示例4:

 function __construct($opt)
 {
     parent::__construct();
     $this->opt = $opt;
 }
开发者ID:mobas,项目名称:mollify,代码行数:5,代码来源:PDFMarker.marker.php

示例5:

 function mb_fpdi($orientation = 'L', $unit = 'mm', $format = 'A4')
 {
     parent::__construct($orientation, $unit, $format);
     $this->SetAutoPageBreak(false, 0);
 }
开发者ID:bfpi,项目名称:klarschiff-frontend-mit-mapbender,代码行数:5,代码来源:mb_fpdi.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->ci =& get_instance();
 }
开发者ID:sunzandesign,项目名称:PHP-Builder,代码行数:5,代码来源:report_01_pdf.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:sanul17,项目名称:higoapps,代码行数:4,代码来源:FPDFLibrary.php


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