Example #1
0
<?php

require 'fpdf.php';
session_start();
//
include_once 'clases/database.php';
include_once 'initial.php';
include_once 'clases/alumnos.php';
//
$alumno = new Alumnos($db);
$alumno->idalumno = $_POST["idalumno"];
$alumno->ConsultarAlumno();
class PDF extends FPDF
{
    function Header()
    {
        //Cabecera del PDF
        $this->Image('imagenes/bannerpdf.png', 10, 10, 180);
        $this->SetFont('Arial', 'B', '12');
        $this->ln(24);
        $this->Cell(0, 10, 'Subsecretaria de Prevencion y Promocion de la salud', 0, 0, 'L');
        $this->ln(5);
        $this->Cell(0, 10, 'Secretariado Tecnico del', 0, 0, 'L');
        $this->ln(5);
        $this->Cell(0, 10, 'Consejo Nacional para la Prevencion de Accidentes', 0, 0, 'L');
        $this->SetFont('Arial', 'B', '11');
        $this->ln(8);
        $this->ln(8);
        $this->ln(8);
        $this->ln(8);
        $this->Ln();