$this->SetFont('ErasMDBT', '', 10); $this->SetTextColor(156, 156, 156); $this->Cell(70); $this->Cell(80, 4, $GLOBALS['CENTRO_DIRECCION'], 0, 1); $this->Cell(70); $this->Cell(80, 4, $GLOBALS['CENTRO_CODPOSTAL'] . ', ' . $GLOBALS['CENTRO_LOCALIDAD'] . ' (' . $GLOBALS['CENTRO_PROVINCIA'] . ')', 0, 1); $this->Cell(70); $this->Cell(80, 4, 'Tlf: ' . $GLOBALS['CENTRO_TELEFONO'] . ' Fax: ' . $GLOBALS['CENTRO_FAX'], 0, 1); $this->Cell(70); $this->Cell(80, 4, 'Correo: ' . $GLOBALS['CENTRO_CORREO'], 0, 1); $this->Ln(8); } } # creamos el nuevo objeto partiendo de la clase $MiPDF = new GranPDF('P', 'mm', 'A4'); $MiPDF->AddFont('NewsGotT', '', 'NewsGotT.php'); $MiPDF->AddFont('NewsGotT', 'B', 'NewsGotTb.php'); $MiPDF->AddFont('ErasDemiBT', '', 'ErasDemiBT.php'); $MiPDF->AddFont('ErasDemiBT', 'B', 'ErasDemiBT.php'); $MiPDF->AddFont('ErasMDBT', '', 'ErasMDBT.php'); $MiPDF->AddFont('ErasMDBT', 'I', 'ErasMDBT.php'); $MiPDF->SetMargins(20, 20, 20); # ajustamos al 100% la visualizacion $MiPDF->SetDisplayMode('fullpage'); // Consulta en curso. foreach ($nombre as $val) { $trozos = explode(" --> ", $val); $claveal0 .= "claveal = '" . $trozos[1] . "' or "; } $claveal1 = substr($claveal0, 0, strlen($claveal0) - 4); mysqli_query($db_con, $SQLDELF);