Aqui los codigos
pdf_send.php Código PHP:
<?php
require_once("dompdf/dompdf_config.inc.php");
$conexion = mysql_connect("SERVIDOR", "USUARIO", "CONTRASEÑA");
mysql_select_db("sistema", $conexion);
$html ='
<html>
<head>
<title>Ficha Tecnica</title>
<style type="text/css">
<!--
#datos {
position:absolute;
width:780px;
left: 164px;
top: 316px;
text-align: center;
}
#apDiv1 #form1 table tr td {
text-align: center;
font-weight: bold;
}
#apDiv2 {
position:absolute;
width:49px;
height:45px;
z-index:2;
left: 12px;
top: 11px;
}
#apDiv1 #notificacion table tr td {
text-align: center;
}
#apDiv1 #notificacion table tr td {
text-align: left;
}
#apDiv1 #notificacion table tr td {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
}
#apDiv3 {
position:absolute;
width:814px;
height:115px;
z-index:1;
left: 34px;
text-align: center;
top: 11px;
}
-->
</style>
</head>
<body>
<div id="apDiv3">
<table width="81%" border="1" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td><table width="100%" border="0">
<tr>
<td style="text-align: center"><img src="imagenes/logo_soccer.jpg" alt="" width="480" height="333"></td>
</tr>
<tr>
<td><p> </p>
<p style="font-family: Helvetica LT Condensed; color: #008895; font-weight: bold; font-size: 22px; text-align: center;">FICHA TECNICA</p></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><spanHelvetica LT Condensed"; font-size: 18px;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Nombre: '.$_POST["nombre"].'</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Edad: '.$_POST["edad"].' Años</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Altura: '.$_POST["altura"].' m</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Peso: '.$_POST["peso"].' Kg.</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Pais: '.$_POST["nacionalidad"].'</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Numero: '.$_POST["numero"].'</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Posicion: '.$_POST["posicion"].'</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Apodo: '.$_POST["apodo"].'</span></td>
</tr>
<tr>
<td style="font-family: Helvetica LT Condensed; font-size: 18px;"><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Habilidad: '.$_POST["habilidad"].'</span></td>
</tr>
<tr>
<td><p> </p>
<p><span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; color: #000;">Comentarios: '.$_POST["comentarios"].'</span></p>
<p> </p>
<p> </p></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</div>
</body>
</html>
';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("Ficha_Tecnica.pdf", array('Attachment'=>'0'));
?>