| |||
Respuesta: Php a pdf PDF <?php require('fpdf.php'); error_reporting(E_ALL); $pdf=new FPDF(); $pdf->AddPage(); $pdf->SetFont('Arial','B',8); $pdf->Text(20,10,'NOMBRE :'.$_REQUEST['txtNombreEmpleado']); $pdf->Text(20,16,'RUT Nº :'.$_REQUEST['txtRutEmpleado']); $pdf->Text(20,22,'CARGO :'.$_REQUEST['txtCargoEmpleado']); $pdf->Text(20,28,'FECHA TERMINO :'.$_REQUEST['txtFechaTermino']); $pdf->Text(20,34,'JORNADA :'.$_REQUEST['txtJornada']); $pdf->Text(20,40,'EST. EDUCACIONALº :'.$_REQUEST['txtInstitucion']); $pdf->Text(20,56,'2. Lo especificado en el presente decreto debera imputarse al item 21, 03 - 004 Area Educacion'); $pdf->Text(20,62,'3. Tomese debida nota por quien corresponda, para los fines a que haya lugar.'); $pdf->Text(20,68,'4. Remitase copia del presente Decreto a Contraloria General de la Republica Region Atacama, para su respectivo Registro.'); $pdf->Text(20,76,'ANOTESE, COMUNIQUESE, REGISTRESE Y ARCHIVESE '); $pdf->Output(); ?> PHP <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>TERMINO DE CONTRATO DE TRABAJO</title> <style type="text/css"> <!-- .Estilo1 {color: #FFFFFF} .Estilo2 {font-size: 12px} .Estilo3 { font-size: 14px; font-weight: bold; } .Estilo4 {font-size: 14px; font-weight: bold; color: #000000; } .Estilo5 {font-size: 14px} .Estilo6 {color: #000000} --> #trd { margin-left: 1100px;; padding-left:10px; align: center; } </style> </head> <body> <form method="post" action="TERMINO3.php"> <table width="1081" height="1058" border="0" align="center"> <tr> <td width="134" height="143"><img src="municipalidad.jpg" width="103" height="139" align="right" longdesc="I. municipalidad" /></td> <td width="937"> <blockquote> <p align="left"><strong>ILUSTRE MUNICIPALIDAD DE VALLENAR<span class="Estilo1">__________________________________ _________________ </span><span class="Estilo2">DEPARTAMENTO DE EDUCACION<span class="Estilo1"> __________________________________________________ _____________________________________ </span>SECCION PERSONAL </span></strong></p> <p align="right"><span class="Estilo2"><strong>REF:</strong>. <strong><u>TERMINO CONTRATO DE TRABAJO </u></strong>/</span></p> <p align="right">Vallenar, <span class="Estilo1">__________________ </span></p> </blockquote></td> </tr> <tr> <td height="29" colspan="2"><blockquote> <p><span class="Estilo2"><strong> <span class="Estilo1">___ _______________________ ___</span>DECRETO Nº _____________/ </strong></span></p> </blockquote></td> </tr> <tr> <td rowspan="8"> </td> <td height="24"> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <p align="left" class="Estilo4"><u>VISTOS</u></p> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote></td> </tr> <tr> <td><blockquote> <blockquote> <p align="justify" class="Estilo5">1. Resolucion Nº 1600 del 06 de Noviembre del 2008, de Contraloria General de la Republica.</p> <p align="justify" class="Estilo5">2 Lo dispuesto en Decreto Fuerza de Ley Nº 1-3036 de 1980.</p> <p align="justify" class="Estilo5">3. Decreto de Fuerza de Ley Nº 1º de 1994 del Codigo del trabajo</p> <p align="justify" class="Estilo5">4. Y las atribuciones que me confiere la ley Nº 18.695 de 1980 Organica Constitucional de Municipalidades.</p> </blockquote> </blockquote></td> </tr> <tr> <td height="24"><blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <blockquote> <p><span class="Estilo3"><u>DECRETO</u></span></p> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote> </blockquote></td> </tr> <tr> <td height="65"><blockquote> <blockquote> <p align="justify" class="Estilo5">1. Apruebese el Termino del Contrato de Trabajo a la funcionaria del Area de Educacion que se identificara posteriormente<span class="Estilo1">_</span>en conformidad a lo establecido en el articulo<strong> 159 INCISO 4º DFL.Nº1. VENCIMIENTO DEL PLAZO CONVENIDO.</strong></p> </blockquote> </blockquote></td> </tr> <tr> <td><blockquote> <p align="justify"> </p> <form id="form1" name="form1" method="post" action="TERMINO3.PHP"> <label><strong><span class="Estilo1">_____</span>NOMBRE : <input name="txtNombreEmpleado" type="text" class="Estilo3" id="txtNombreEmpleado" size="60" maxlength="60" /> </strong></label> <p><strong> <label><span class="Estilo1">_____</span>R.U.T. Nº :</label> <input name="txtRutEmpleado" type="text" id="txtRutEmpleado" size="30" maxlength="10" /> </strong></p> <p><strong><span class="Estilo1">____</span> <label>CARGO : <input name="txtCargoEmpleado" type="text" id="txtCargoEmpleado" size="70" maxlength="68" /> </label> </strong></p> <p> <strong> <label><span class="Estilo1">_____</span>FECHA TERMINO</label> </strong> <label> : <input name="txtFechaTermino" type="text" id="txtFechaTermino" size="25" maxlength="10" /> </label> </p> <p> <label><strong><span class="Estilo1">_____</span>JORNADA : <input name="txtJornada" type="text" id="txtJornada" size="34" maxlength="12" /> </strong></label> </p> <p> <strong> <label><span class="Estilo1">_____</span>EST. EDUCACIONAL : </label> </strong> <label> <input name="txtInstitucion" type="text" id="txtInstitucion" size="55" maxlength="55" /> </label></p> <p> </p> </form> </blockquote></td> </tr> <tr> <td height="76"><blockquote> <blockquote> <p align="justify" class="Estilo5">2. <span class="Estilo1">__ </span> Lo especificado en el presente decreto debera imputarse al item 21, 03 - 004 Area Educacion</p> <p align="justify" class="Estilo5">3. <span class="Estilo1">__</span> Tomese debida nota por quien corresponda, para los fines a que haya lugar.</p> <p align="justify" class="Estilo5">4. <span class="Estilo1">__ </span>Remitase copia del presente Decreto a Contraloria General de la Republica Region Atacama, para su respectivo Registro.</p> <p align="justify" class="Estilo5">ANOTESE, COMUNIQUESE, REGISTRESE Y ARCHIVESE </p> </blockquote> </blockquote></td> </tr> <tr> <td height="76"><p> </p> <p> </p> <blockquote> <p> </p> <blockquote> <p><strong>NANCY E. FARFAN RIVEROS<span class="Estilo1">_________________________</span>CRISTIAN H. TAPIA RAMOS<br/> SECRETARIA MUNICIPAL <span class="Estilo1">____________________________</span>ALCALDE DE LA COMUNA </strong></p> </blockquote> </blockquote></td> </tr> <tr> <td height="76"><blockquote> <p> </p> <blockquote> <p align="justify"><strong><u>DISTRIBUCION</u></strong></p> <p align="justify"><span class="Estilo5">- Contraloria General de la Republica, Region Atacama (4) <span class="Estilo1">_______________________________ ____</span></span></p> <p align="justify" class="Estilo5">- Direccion de Control<span class="Estilo1">________________</span></p> <p align="justify" class="Estilo5"><span class="Estilo1"><span class="Estilo6">- </span></span> <u>Interesado carpeta personal/arch.of. de partes.</u>___________________________/ <span class="Estilo1">_____</span></p> <p align="justify" class="Estilo5">CHTR/NEFR/REPM/LXMM/eelt/mesc </p> </blockquote> <p align="justify" class="Estilo5"> </p> <p class="Estilo5"> </p> </blockquote></td> </tr> </table> <table> <tr> <td> <input type = "submit" value = "Enviar"> </td> </tr> </table> </Form> </body> </html> ESTE ES EL CODIGO PERO NO ENTIENDO PORQ EL TEXTBOX DEL PHP NO ES ENVIADO AL PDF |
| ||||
Respuesta: Php a pdf Prueba recuperando tus variables en la pagina.php que genera el pdf
Código PHP:
Ver original recuperalas y cuenta que tal, saludos. |
| |||
Respuesta: Php a pdf No paso nada :( de nada me tira los mismo errores mira Notice: Undefined index: txtInstitucion in E:\practica\Documentos\Certificado3.php on line 25 Warning: Cannot modify header information - headers already sent by (output started at E:\practica\Documentos\Certificado3.php:10) in E:\practica\Documentos\fpdf.php on line 1017 FPDF error: Some data has already been output, can't send PDF file |
| ||||
Respuesta: Php a pdf mi me paso lo mismo, tienes que limpiar los buffers usando la funcion: http://www.php.net/manual/en/function.flush.php Así lo arreglé yo. |
| ||||
Respuesta: Php a pdf Prueba Asi:
Código PHP:
Ver original |
Etiquetas: |