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


PHP FPDF::__construct方法代码示例

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


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

示例1: creaFormato

 function creaFormato($vecDepDest)
 {
     parent::__construct('L', 'mm', 'letter');
     $this->SetFont('Arial', 'B', 5);
     $this->SetTitle("Formato Radicación Express");
     $this->SetAuthor("");
     $this->SetCreator("Developed by Grupo Iyunxi Ltda.");
     $this->AliasNbPages();
     $this->cuerpo($vecDepDest, $vecDepInf);
 }
开发者ID:kractos26,项目名称:orfeo,代码行数:10,代码来源:ReportExpressPDF.php

示例2:

 function __construct()
 {
     parent::__construct('P', 'pt', 'A4');
     $this->setAuthor('Galaxy Swiss');
     $this->addPage();
     $this->nl = false;
 }
开发者ID:SmashingQuasar,项目名称:galaxy-swiss,代码行数:7,代码来源:class.reportpdf.inc.php

示例3: array

 function __construct($data = array(), $data2 = array(), $options = array())
 {
     parent::__construct();
     $this->data = $data;
     $this->data2 = $data2;
     $this->options = $options;
 }
开发者ID:lillongcillong,项目名称:TA-LabMS-LSKK-STEI-ITB,代码行数:7,代码来源:generate_pdf.php

示例4: __construct

 /**
  *
  * Set standard margin, orientation, units used and paper size
  *
  * @param int $margin Marginsize in user units.
  *
  * @param char $orientation Default page orientation. 'P' for portrait or
  * 'L' for landscape
  *
  * @param string $unit User units. 'pt' for points, 'mm' for millimeters,
  * 'cm' for centimetera or 'in' for inches
  *
  * @param string|array $format The size used for pages. 'A3', 'A4', 'A5',
  * 'Letter' or 'Legal'. May also be an array of height and width specified
  * in user units.
  *
  */
 public function __construct($margin = 20, $orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::__construct($orientation, $unit, $format);
     $this->AliasNbPages('{{{nb}}}');
     $this->SetMargins($margin, $margin);
     $this->SetAutoPageBreak(TRUE, $margin);
 }
开发者ID:CodeSomethingMX,项目名称:barney,代码行数:24,代码来源:EXTENDED.php

示例5: __construct

 public function __construct($devolutiveRow, $pathToSave, $tipoPDF = null)
 {
     parent::__construct('P', 'cm', 'A4');
     $this->AliasNbPages();
     $this->SetTopMargin(4);
     $this->SetAutoPageBreak(true, 3.5);
     $this->devolutiveRow = $devolutiveRow;
     $this->pathToSave = $pathToSave;
     $this->tipoPDF = $tipoPDF;
     new Report_Devolutive_Cover($this, $tipoPDF);
     if ($tipoPDF != 4) {
         new Report_Devolutive_Introduction($this, $devolutiveRow);
     }
     if ($tipoPDF == 4) {
         new Report_Devolutive_IntroducaoVerificador($this, $devolutiveRow);
     }
     new Report_Devolutive_Enterprise($this, $devolutiveRow);
     new Report_Devolutive_President($this, $devolutiveRow);
     if ($tipoPDF == 4) {
         new Report_Devolutive_Score($this, $devolutiveRow, true);
     } else {
         new Report_Devolutive_Score($this, $devolutiveRow);
     }
     if ($tipoPDF == 4) {
         new Report_Devolutive_QuestionarioNegocio($this, $devolutiveRow);
     }
     if ($tipoPDF != 4) {
         new Report_Devolutive_Courses($this, $devolutiveRow);
         new Report_Devolutive_NextSteps($this, $devolutiveRow);
     }
 }
开发者ID:Lazaro-Gallo,项目名称:psmn,代码行数:31,代码来源:PDF.php

示例6: __construct

 /**
  * Class constructor
  * @param str $orientation Paper orientation
  * @param str $unit The unit that is used
  * @param str $format The aper size
  */
 public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::__construct($orientation, $unit, $format);
     $this->SetCreator(utf8_decode('Websailors'));
     $this->linker = sh_linker::getInstance();
     $this->i18nClassName = 'sh_pdf';
 }
开发者ID:briceparent,项目名称:Shopsailors,代码行数:13,代码来源:sh_pdf.cls.php

示例7:

 /**
  * Wrapper for FPDF::__construct. It adds DIN fonts and sets Margins/AutoPageBreak/Font.
  *
  * @param string See FPDF::FPDF for this parameter, defaults to 'P'
  * @param string See FPDF::FPDF for this parameter, defaults to 'mm'
  * @param string See FPDF::FPDF for this parameter, defaults to 'A4'
  *
  * @author Former03 GmbH :: Florian Lippert <flo@syscp.org>
  */
 function __construct($orientation = 'P', $unit = 'mm', $format = 'A4')
 {
     parent::__construct($orientation, $unit, $format);
     $this->SetMargins(18, 25);
     $this->SetAutoPageBreak(true, 25);
     $this->SetFont('helvetica', '', '10');
 }
开发者ID:HobbyNToys,项目名称:SysCP,代码行数:16,代码来源:class.PDF.php

示例8: __construct

 public function __construct($id_pessoa, $mes, $ano)
 {
     $this->id_pessoa = $id_pessoa;
     $this->mes = $mes;
     $this->ano = $ano;
     parent::__construct();
 }
开发者ID:landim32,项目名称:escola-bem-me-quer,代码行数:7,代码来源:movimento-pdf.inc.php

示例9:

 function __construct()
 {
     //Llama al constructor de su clase Padre.
     //Modificar aka segun la forma del papel del reporte (P= VERTICAL, L=HORIZONTAL)
     parent::__construct('L', 'mm', 'A4');
     //parent::__construct('P','mm','Letter');
 }
开发者ID:aiyellweb,项目名称:arenera,代码行数:7,代码来源:informe4.php

示例10: dirname

 function __construct($orientation, $unit, $format)
 {
     parent::__construct($orientation, $unit, $format);
     $this->temp_filename = dirname(__FILE__) . '/temppdf/' . TT();
     $this->html = html_colors();
     $this->timestamp = date('Y-m-d H:i:s');
 }
开发者ID:BackupTheBerlios,项目名称:nubuilder-svn,代码行数:7,代码来源:run_report_pdf_v2.php

示例11: __construct

 public function __construct($month, $year)
 {
     parent::__construct();
     $this->year = $year;
     $this->month = $month;
     $this->daysInMonth = cal_days_in_month(CAL_GREGORIAN, $month, $year);
 }
开发者ID:evandrolacerda,项目名称:caps_laravel,代码行数:7,代码来源:GeradorFolhaFrequencia.php

示例12: __construct

 public function __construct($orientation = "L", $paper = "A4")
 {
     parent::__construct($orientation, "mm", $paper);
     if (is_string($paper)) {
         switch ($paper) {
             case "A3":
                 if ($orientation == "L") {
                     $this->twidth = 400;
                 } else {
                     $this->twidth = 277;
                 }
                 break;
             case "A4":
                 if ($orientation == "L") {
                     $this->twidth = 277;
                 } else {
                     $this->twidth = 190;
                 }
                 break;
             case "A5":
                 if ($orientation == "L") {
                     $this->twidth = 190;
                 } else {
                     $this->twidth = 128;
                 }
                 break;
         }
     } elseif (is_array($paper)) {
         $this->twidth = $paper[1] - 20;
     }
     $this->AddPage();
     $this->SetFont('Helvetica', null, 8);
     $this->SetAutoPageBreak(true, 15);
 }
开发者ID:rocksyne,项目名称:wyf,代码行数:34,代码来源:PDFDocument.php

示例13: __construct

 public function __construct($title)
 {
     parent::__construct();
     $this->AddPage();
     $this->SetFont('Arial', 'B', 40);
     $this->Cell(40, 10, $title);
     $this->Ln();
 }
开发者ID:MichelChouinard,项目名称:420-DW3-FX_Programmation-2_Exercices,代码行数:8,代码来源:pdftext.php

示例14: __construct

 public function __construct()
 {
     parent::__construct('P', 'mm', 'Letter');
     $file = "youre gone.php";
     $this->AddFont('youregone', '', 'youre gone.php');
     //$file = "Respective.php";
     //his->AddFont('Respective','','Respective.php');
 }
开发者ID:allin-wichariy,项目名称:dct,代码行数:8,代码来源:imprimir_via.php

示例15: array

 /**
  * P:Carta Vertical, L:Carta Horizontal, lP:Legal vertical, lL:Legal Horizontal
  * @param unknown_type $orientation
  * @param unknown_type $unit
  * @param unknown_type $size
  */
 function __construct($orientation = 'P', $unit = 'mm', $size = array(63, 180))
 {
     parent::__construct($orientation, $unit, $size);
     $this->limiteY = 50;
     $this->pag_size = $size;
     $this->SetMargins(0, 0, 0);
     $this->SetAutoPageBreak(false);
 }
开发者ID:r9software,项目名称:terminalSP,代码行数:14,代码来源:mypdf_ticket.php


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