示例#1
14
 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);
 }
 function __construct()
 {
     parent::__construct('P', 'pt', 'A4');
     $this->setAuthor('Galaxy Swiss');
     $this->addPage();
     $this->nl = false;
 }
 function __construct($data = array(), $data2 = array(), $options = array())
 {
     parent::__construct();
     $this->data = $data;
     $this->data2 = $data2;
     $this->options = $options;
 }
示例#4
0
 /**
  *
  * 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
0
文件: PDF.php 项目: Lazaro-Gallo/psmn
 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
0
 /**
  * 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
0
 /**
  * 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 <*****@*****.**>
  */
 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');
 }
 public function __construct($id_pessoa, $mes, $ano)
 {
     $this->id_pessoa = $id_pessoa;
     $this->mes = $mes;
     $this->ano = $ano;
     parent::__construct();
 }
示例#9
0
 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
0
 function __construct()
 {
     //Llama al constructor de su clase Padre.
     //Modificar aka segun la forma del papel del reporte
     parent::__construct('P', 'mm', 'A4');
     //parent::__construct('P','mm','Letter');
 }
 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');
 }
 public function __construct($month, $year)
 {
     parent::__construct();
     $this->year = $year;
     $this->month = $month;
     $this->daysInMonth = cal_days_in_month(CAL_GREGORIAN, $month, $year);
 }
示例#13
0
 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);
 }
 public function __construct($title)
 {
     parent::__construct();
     $this->AddPage();
     $this->SetFont('Arial', 'B', 40);
     $this->Cell(40, 10, $title);
     $this->Ln();
 }
示例#15
0
 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');
 }
示例#16
0
 /**
  * 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);
 }
 public function NFSePHPGinfesPDF($orientation = 'P', $unit = 'mm', $format = 'A4', $arquivo_xml_origem = '', $gif_brasao_prefeitura = '', $gif_logo_empresa = '', $aParser = false)
 {
     parent::__construct($orientation, $unit, $format);
     $this->gif_brasao_prefeitura = $gif_brasao_prefeitura;
     $this->gif_logo_empresa = $gif_logo_empresa;
     $this->arquivo_xml_origem = $arquivo_xml_origem;
     $this->aParser = $aParser;
 }
 /**
  * Construtor da Classe
  * @param type $titulo
  * @param type $columnsHeader
  * @param type $columnsWidth
  */
 public function __construct($orientation, $titulo, $columnsHeader, $columnsWidth, $lineHeight)
 {
     parent::__construct($orientation);
     $this->titulo = $titulo;
     $this->columnsHeader = $columnsHeader;
     $this->columnsWidth = $columnsWidth;
     $this->lineHeight = $lineHeight;
     parent::AliasNbPages();
 }
示例#19
0
 public function __construct(CCliente $oCliente, CFactura $oFactura, $sEmpresaEmisora = "", $sCif = "", $rImagen = "../Images/LogoHoja.jpg", $cOrientacion = "P", $sUnidDistancia = "mm", $sTamanoFolio = "A4")
 {
     parent::__construct($cOrientacion, $sUnidDistancia, $sTamanoFolio);
     $this->_AsciiEuro = chr(128);
     $this->_sEmpresaEmisora = $sEmpresaEmisora;
     $this->_sCif = $sCif;
     $this->_rImagen = $rImagen;
     $this->_oCliente = $oCliente;
     $this->_oFactura = $oFactura;
 }
 public function __construct($Title = '', $SubTitle = '')
 {
     parent::__construct();
     $this->pts_title = $Title;
     $this->pts_sub_title = $SubTitle;
     $this->SetTitle($Title);
     $this->SetAuthor('Phoronix Test Suite');
     $this->SetCreator(pts_codename(true));
     $this->SetCompression(false);
 }
 public function __construct(\App\Internamento $internamento)
 {
     $this->paciente = $internamento->paciente;
     $this->convenio = $internamento->convenio;
     $this->acompanhante = $internamento->int_acompanhante;
     $this->titulo = sprintf("Encaminhamento Para Comunidade Terapêutica");
     $this->estabelecimentoOrigem = $internamento->origem->est_sigla;
     $this->estabelecimentoDestino = $this->convenio;
     $this->internamento = $internamento;
     parent::__construct('P');
     $this->AddPage();
     $this->SetLeftMargin(10);
     $this->SetTopMargin(5);
 }
示例#22
0
 function creaHoja($radicado)
 {
     $this->radicado = $radicado;
     parent::__construct('P', 'mm', 'Letter');
     $this->barCode();
     $this->SetFont('Arial', 'B', 5);
     $this->SetMargins(20, 10, 2);
     $this->AddPage();
     $this->SetTitle("Hoja Resumen Radicado");
     $this->SetAuthor("IYU");
     $this->SetCreator("Developed by Grupo Iyunxi Ltda.");
     $this->AliasNbPages();
     $this->cuerpo($radicado);
 }
示例#23
0
 public function __construct($orientation = "P", $unit = "mm", $format = "A4")
 {
     parent::__construct($orientation, $unit, $format);
     $this->default_font = array("name" => "Helvetica", "style" => "", "size" => "10", "background" => "#FFFFFF", "color" => "#000000");
     $this->cur_line_h = null;
     $this->cur_max_h = 0;
     $this->valign_defered = array();
     $this->excess_text = array();
     $this->defered_borders = array();
     $this->curFlowLine = array();
     $this->curFlowLineAlign = null;
     $this->angle = 0;
     $this->SetDefaultFont();
     $this->listeners = array();
 }
示例#24
0
	public function __construct($config, $myData = NULL, $ispdfforinv = true, $orientation = 'P') 
        {
            parent::__construct();
            $this->SetMargins($this->leftMargin,$this->topMargin);
            $this->orientaion = $orientation;
            if($orientation === 'P')
            {
                $this->PG_W = 190;
            }
            else
            {
                $this->PG_W = 290;
            }
            $this->prepareInvoice($config, $myData, $ispdfforinv);
	}
示例#25
0
 public function init()
 {
     // Konstruktor der vererbenden Klasse aufrufen (also den von FPDF)
     parent::__construct("P", "mm", "A4");
     // L=Querformat(Landscape), P=Hochformat(Portrait)
     // Einstellungen für das zu erstellende PDF-Dokument
     $this->SetDisplayMode(100);
     // wie groß wird Seite angezeigt(in %)
     // Seite erzeugen
     $this->AddPage();
     $this->AliasNbPages('{GesamtanzahlSeiten}');
     // Table erzeugen
     $this->initHeader();
     $this->initHeadlines();
     $this->initDataTable();
     $this->Output();
 }
示例#26
0
 /**
  * Este metodo dibuja el formato unico de inventario
  *
  * @param RecordSet $recodSet 
  * @param array $titulos para 
  * @param array $widths
  */
 function creaFormato($recodSet, $titulos, $widths)
 {
     parent::__construct('L', 'mm', 'legal');
     $this->getDatosParametros();
     $this->rs = $recodSet;
     $this->headerTit = $titulos;
     $this->widths = $widths;
     $this->SetFont('Arial', 'B', 5);
     $this->SetMargins(20, 10, 2);
     //$this->SetRightMargin(0);
     $this->AddPage();
     $this->SetTitle("Formato único de Inventario");
     $this->SetAuthor("IYU");
     $this->SetCreator("Developed by Grupo Iyunxi Ltda.");
     $this->AliasNbPages();
     $this->cuerpo($recodSet);
     //$this->enlaceXML();
 }
 /**
  * Constructor method
  * @param  $orientation Page orientation
  * @param  $format Page format
  * @author Pablo Dall'Oglio
  */
 public function __construct($orientation = 'P', $format = 'a4')
 {
     parent::__construct($orientation, 'pt', $format);
     $this->setLocale();
     parent::SetAutoPageBreak(true);
     parent::SetMargins(0, 0, 0);
     parent::SetCreator('Adianti Studio PDF Designer');
     // parent::SetTitle('Letter');
     // parent::SetKeywords('www.xyz.com.br');
     parent::SetFillColor(255, 255, 255);
     parent::Open();
     parent::AliasNbPages();
     parent::SetX(20);
     $this->replaces = array();
     $this->href = '';
     $this->anchors = array();
     $this->orientation = $orientation;
     $this->format = $format;
     parent::SetFont('Arial', '', 10 * 1.3);
 }
示例#28
0
 function PDF_Label($format, $unit = 'mm', $posX = 1, $posY = 1)
 {
     if (is_array($format)) {
         // Custom format
         $Tformat = $format;
     } else {
         // Built-in format
         if (!isset($this->_Avery_Labels[$format])) {
             $this->Error('Unknown label format: ' . $format);
         }
         $Tformat = $this->_Avery_Labels[$format];
     }
     parent::__construct('P', $unit, $Tformat['paper-size']);
     $this->_Metric_Doc = $unit;
     $this->_Set_Format($Tformat);
     $this->SetFont('Arial');
     $this->SetMargins(0, 0);
     $this->SetAutoPageBreak(false);
     $this->_COUNTX = $posX - 2;
     $this->_COUNTY = $posY - 1;
 }
示例#29
0
文件: Pdf.php 项目: jkolaz/colegio
 public function __construct()
 {
     parent::__construct();
 }
示例#30
0
 public function __construct($serie, $proprio)
 {
     parent::__construct();
     $this->init($serie, $proprio);
     $this->SetCreator('BDE Tech\'Paf', true);
     $this->SetAuthor('BDE Tech\'Paf - bontiv', true);
     $this->SetTitle('BDE Tech\'Paf - Prevente BDE', true);
     $this->AddPage();
 }