Ver Mensaje Individual
  #3 (permalink)  
Antiguo 25/01/2011, 12:26
elizaabeeth
 
Fecha de Ingreso: octubre-2010
Mensajes: 20
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Php a pdf - error?

ALGO ASI?

O COMO


<html>
<head>
<title> CERTIFICADO </title>
<style type = "text/css">
<!--
.Estilo1 {
font-size: 12px;
font-weight: bold;
}
.Estilo3 {font-size: 12; font-weight: bold; }
.Estilo5 {color: #FFFFFF}
.Estilo7 {font-size: 24px}
.Estilo8 {font-size: 14px}
.Estilo9 {font-size: 14px; color: #FFFFFF; }
.Estilo10 {color: #000000}
.Estilo11 {font-size: 14px; color: #000000; }
.Estilo12 {font-size: 14px; color: #000000; font-weight: bold; }
.Estilo13 {
font-size: 14;
color: #FFFFFF;
}
-->
form
{
height:750px;
width: 580px;
border: 1px solid black;
background: white;
align: justify;
}
#trd
{
margin: 10px 6px 6px 2px;
padding-left:30PX;
padding-RIGHT:30PX;
align: center;
}
p
{
align: justify;
}
#parrafo
{

padding-left:470px;
align: right;
}
#texto
{ padding-left:280px;
align: right;
padding-right:20px;
font-size = '2.5';
align: justify;
}
#texto1
{ padding-left:70px;
align: justify;
padding-right:80px;
font-size = '2.5';
}
#texto3
{ padding-left:285px;
align: justify;
padding-right:90px;

}
#centrar
{
padding-left: 62px;
}
</style>
</head>
<body>
<form>
<table id = "trd" align= "center">
<tr>
<td> <p id = "centrar"><img src = "municipalidad.jpg" ></img></td>
<td>
</td>
<td><H3><center>CERTIFICADO</center></H3></td>
</tr>
</table>
<table id = "trd" CENTER>
<tr>
<td>
<?php
require('fpdf/fpdf.php');
ob_start();
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Este es un ejemplo de creación de un documento PDF con PHP');
$pdf->Cell(40,10, 'LUCIA X. MULET MARTINEZ, JEFE DE PERSONAL DEL DEPARTAMENTO ADMINISTRACION DE DEDUCACION MUNICIPAL, CERTIFICA QUE:<br><br> DON (A)');
$pdf->Cell(40,10, $_REQUEST['txtTrabajador']);
$pdf->Cell(40,10,'Rut Nº ');
$pdf->Cell(40,10,$_REQUEST['txtRutTrabajador']);
$pdf->Cell(40,10,'DESEMPEÑA FUNCIONES DE');
$pdf->Cell(40,10, $_REQUEST['txtFuncion']);
$pdf->Cell(40,10,', EN EL');
$pdf->Cell(40,10, $_REQUEST['txtLiceo']);
$pdf->Cell(40,10,', A CONTAR DEL ');
$pdf->Cell(40,10, $_REQUEST['txtFecha']);
$pdf->Cell(40,10,' Y EN FORMA INDEFINIDA.');
$pdf->Cell(40,10,'SE EXTIENDE EL PRESENTE CERTIFICADO A PETICION DEL INTERESADO, PARA LOS FINES QUE SE ESTIME CONVENIENTES SIN ULTERIOR RESPONSABILIDAD DE ESTA SECCION.');
$pdf-> Cell(40,10,'En Vallenar,');
$pdf->Cell(40,10,$_REQUEST['txtFechaActual']);
ob_end_flush();
?>
</td>
</tr>
</table>
</FORM>
</body>
</html>