Using perl Syntax Highlighting
- #!/usr/bin/perl -w
- use HTML::HTMLDoc;
- use File::Path;
- my $htmldoc = new HTML::HTMLDoc();
- $htmldoc->set_html_content(qq|<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <body background="o_co_img_01.jpg">
- <table width="727" border=0 bordercolordark="#FFFFFF">
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td width=182></td>
- <td width=167></td>
- <td width=179></td>
- <td width=181></td>
- </tr>
- <tr>
- <td colspan="4"></td>
- </tr>
- </table>
- <table width="727" border=0>
- <tr>
- <td height="30" width=182 align=left ><font face="Arial, Helvetica, sans-serif" color="#58ab27">Nuestra Ref. :</font></td>
- <td width=167><font face="Arial, Helvetica, sans-serif" color="#919191">Cot. </font></td>
- <td width=167></td>
- <td width=179 align="right"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Fecha :</font></td>
- <td width=181 align=left ><font face="Arial, Helvetica, sans-serif" color="#919191">04/07/2013</font></td>
- </tr>
- <tr>
- <td height="30" width=182 align=left ><font face="Arial, Helvetica, sans-serif" color="#58ab27">A :</font></td>
- <td colspan="3"><font face="Arial, Helvetica, sans-serif" color="#919191">Cliente</font></td>
- </tr>
- <tr>
- <td height="30" width=182 align=left ><font face="Arial, Helvetica, sans-serif" color="#58ab27">Atención</font></td>
- <td colspan="3"><font face="Arial, Helvetica, sans-serif" color="#919191">Contacto</font></td>
- </tr>
- <tr>
- <td height="30" width=182 align=left ><font face="Arial, Helvetica, sans-serif" color="#58ab27">Referencia :</font></td>
- <td colspan="3"><font face="Arial, Helvetica, sans-serif" color="#919191">Nombre Proyecto</font></td>
- </tr>
- <tr>
- <td colspan="4" height="20"></td>
- </tr>
- <tr>
- <td colspan="4"><font face="Arial, Helvetica, sans-serif" color="#58ab27">SEC ofrece el suministro del equipo eléctrico de la siguiente manera:</font></td>
- </tr>
- <tr>
- <td colspan="5">
- </td>
- </tr>
- <tr>
- <td colspan="5"></td>
- </tr>
- <tr>
- <td height="14" colspan="5"></td>
- </tr>
- <tr>
- <td colspan="5"></td>
- </tr>
- </table>
- <table width="727">
- <tr bgcolor="#58ab27">
- <td width=27 align=left ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Item</font></td>
- <td width=387 align=left ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Descripción</font></td>
- <td width=32 align=center ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">QTY</font></td>
- <td width=90 align=center ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Unitaria</font></td>
- <td width=90 align=center ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">Total</font></td>
- </tr>
- <tr>
- <td width=27 align=left ><font face="Arial, Helvetica, sans-serif" color="#919191">1</font></td>
- <td width=387 align=left ><font face="Arial, Helvetica, sans-serif" color="#919191">de</font></td>
- <td width=32 align=center ><font face="Arial, Helvetica, sans-serif" color="#919191">1</font></td>
- <td width=90 align=center ><font face="Arial, Helvetica, sans-serif" color="#919191">000.000</font></td>
- <td width=90 align=center ><font face="Arial, Helvetica, sans-serif" color="#919191">000.000</font></td>
- </tr>
- <tr bgcolor="#58ab27">
- <td width=27 align=left ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF"></font></td>
- <td width=387 align=left ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">TOTAL (Precio en Dólares Americanos no incluye IVA)</font></td>
- <td width=32 align=center ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF"></font></td>
- <td width=90 align=center ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">USD</font></td>
- <td width=90 align=center ><font face="Arial, Helvetica, sans-serif" color="#FFFFFF">000.000</font></td>
- </tr>
- </table>
- <table width="765">
- <tr>
- <td height="50" colspan="5"><font face="Arial, Helvetica, sans-serif" size="+1" color="#58ab27"><strong>Plazos de entrega a partir de la puesta en vigencia del contrato</strong></font></td>
- </tr>
- <tr>
- <td height="30" colspan="2"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Envío de planos para aprobación :</font></td>
- <td height="30" colspan="3"><font face="Arial, Helvetica, sans-serif" color="#919191">03 Semanas</font></td>
- </tr>
- <tr>
- <td height="30" colspan="2"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Equipos listos para inspección en fabrica :</font></td>
- <td height="30" colspan="2"><font face="Arial, Helvetica, sans-serif" color="#919191">12 Semanas, a partir de aprobación de planos
- por parte de cliente</font></td>
- </tr>
- <tr>
- <td height="57" colspan="5"><font face="Arial, Helvetica, sans-serif" size="+1" color="#58ab27"><strong>Documentos adjuntos</strong></font></td>
- </tr>
- <tr>
- <td width="209" height="30"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Anexo 01 :</font></td>
- <td height="30" colspan="3"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Condiciones Generales de Venta ref. SCH-19926 / Rev.3 Diciembre de 2007.</font></td>
- </tr>
- <tr>
- <td height="30"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Anexo 02 :</font></td>
- <td height="30" colspan="3"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Especificación Técnica Celdas de Mt SM6 Cot.20000518.</font></td>
- </tr>
- </table>
- <table width="671">
- <tr>
- <td height="30" colspan="5" ><font face="Arial, Helvetica, sans-serif" color="#58ab27"></font></td>
- </tr>
- <tr>
- <td height="102" colspan="5"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Si el cliente acepta esta oferta, por favor devolver una copia firmada (con anexos)</font></td>
- </tr>
- <tr>
- <td width="167" height="30" ><font face="Arial, Helvetica, sans-serif" color="#58ab27">Firma por SEC</font></td>
- <td width="255" height="30" align="center"><font face="Arial, Helvetica, sans-serif" color="#919191">Nombre Responsable</font></td>
- <td width="263" height="30" align="center"><font face="Arial, Helvetica, sans-serif" color="#919191">Nombre TCO</font></td>
- </tr>
- <tr>
- <td height="30" ><font face="Arial, Helvetica, sans-serif" color="#58ab27">Fecha : 04/07/2013 </font></td>
- <td width="255" height="30" align="center"><font face="Arial, Helvetica, sans-serif" color="#919191">Responsable Comercial</font></td>
- <td width="263" height="30" align="center"><font face="Arial, Helvetica, sans-serif" color="#919191">Ing. Técnico Comercial Ofertas</font></td>
- </tr>
- <tr>
- <td height="60" colspan="5"><font face="Arial, Helvetica, sans-serif" color="#58ab27"></font></td>
- </tr>
- <tr>
- <td height="30" colspan="5" align="center"><font face="Arial, Helvetica, sans-serif" color="#58ab27">Firma por Cliente </font></td>
- </tr>
- <tr>
- <td height="30" colspan="5" align="center"><font size="-1" face="Arial, Helvetica, sans-serif" color="#58ab27">Fecha 04/07/2013 </font></td>
- </tr>
- </table>
- </body>
- </html>
- |);
- my $pdf = $htmldoc->generate_pdf();
- $pdf->to_file('Cotizacion.pdf');
Coloreado en 0.013 segundos, usando GeSHi 1.0.8.4
¿Pueden ayudarme a generar el pdf? Si existe otra forma, pueden orientarme.
De ante mano, gracias.