本文整理汇总了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);
}
示例2:
function __construct()
{
parent::__construct('P', 'pt', 'A4');
$this->setAuthor('Galaxy Swiss');
$this->addPage();
$this->nl = false;
}
示例3: array
function __construct($data = array(), $data2 = array(), $options = array())
{
parent::__construct();
$this->data = $data;
$this->data2 = $data2;
$this->options = $options;
}
示例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);
}
示例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);
}
}
示例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';
}
示例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');
}
示例8: __construct
public function __construct($id_pessoa, $mes, $ano)
{
$this->id_pessoa = $id_pessoa;
$this->mes = $mes;
$this->ano = $ano;
parent::__construct();
}
示例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');
}
示例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');
}
示例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);
}
示例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);
}
示例13: __construct
public function __construct($title)
{
parent::__construct();
$this->AddPage();
$this->SetFont('Arial', 'B', 40);
$this->Cell(40, 10, $title);
$this->Ln();
}
示例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');
}
示例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);
}