Beispiel #1
0
 function __construct($cr = '', $tim = '', $img = '', $orientation = 'P', $unit = 'pt', $format = 'Letter', $margin = 40)
 {
     Fpdf::FPDF($orientation, $unit, $format);
     Fpdf::SetTopMargin($margin);
     Fpdf::SetLeftMargin($margin);
     Fpdf::SetRightMargin($margin);
     Fpdf::SetAutoPageBreak(true, $margin);
     $this->creator = $cr;
     $this->time = $tim;
     $this->logo = $img;
 }
Beispiel #2
0
<?php

$fpdf = new Fpdf();
$fpdf->AddPage();
$fpdf->SetFont('Arial', 'B', 16);
$fpdf->SetAutoPageBreak(false);
$fpdf->image(public_path() . '/img/logo.png', 11, 11, 25, 11);
$fpdf->Cell(140, 8, 'Frizelo Frigorificos Ltda', 'LTR', 0, 'C');
$fpdf->SetFont('Arial', '', 9);
$fpdf->MultiCell(50, 8, utf8_decode('Numeração: ') . $aso->id, 'TR', 1);
$fpdf->SetFont('Arial', '', 6);
$fpdf->Cell(140, 5, 'ROD. BR-262 - KM 375, ZONA SUBURBANA, TERENOS-MS FONE: (67) - 3246-8100', 'BLR', 0, 'C', 0);
$fpdf->SetFont('Arial', '', 9);
$fpdf->MultiCell(50, 5, 'Data: ' . $aso->data, 'BR', 1);
$fpdf->SetFont('Arial', 'B', 12);
$fpdf->MultiCell(190, 9, utf8_decode('Medicina e Consultoria em Segurança do Trabalho'), 'BLR', 'L');
$fpdf->SetFont('Arial', '', 9);
$fpdf->MultiCell(190, 9, utf8_decode('Em cumprimento ao disposto no item 7.4.1 da NR 7 e Portaria N 24 de 24/14/84'), 'LRT', 'C');
$fpdf->SetFont('Arial', 'B', 12);
$fpdf->SetTextColor(150);
$fpdf->MultiCell(190, 9, utf8_decode('A.S.O. - Atestado de Saúde Ocupacional'), 'LRB', 'C');
$fpdf->SetTextColor(0);
$fpdf->SetFont('Arial', '', 9);
$fpdf->Cell(33, 7, utf8_decode('Matrícula: ' . $aso->colaborador_matricula), 'LTR', 0, 'L');
$fpdf->Cell(97, 7, utf8_decode('Nome: ' . $aso->colaborador_nome), 'LTR', 0, 'L');
$fpdf->Cell(60, 7, utf8_decode('RG: ' . $aso->colaborador_rg . ' ' . $aso->colaborador_orgao_emissor), 'LTR', 0, 'L');
$fpdf->Ln();
$fpdf->Cell(30, 7, 'Sexo: ' . $aso->colaborador_sexo_descricao, 'LTR', 0, 'L');
$fpdf->Cell(60, 7, 'Data de Nascimento: ' . $aso->colaborador_data_nascimento, 'LTR', 0, 'L');
$fpdf->Cell(30, 7, 'Idade: ' . $aso->colaborador_idade, 'LTR', 0, 'L');
$fpdf->Cell(70, 7, utf8_decode('Setor: ' . $aso->setor), 'LTR', 0, 'L');