les comento que estoy utilizando html2pdf para pasar html a pdf, todo muy lindo (va.. mas o menos)
el problema que tengo es que no me reconoce cuando pongo una imagen como background de una tabla, es como si nada. (fondo blanco), estoy haciendo algo mal, o no lo soporta?
la mayoria de la info esta en frances y no entiendo nada.
http://www.html2pdf.fr/es/
Código PHP:
   <?php
/**
 * Logiciel : exemple d'utilisation de HTML2PDF
 * 
 * Convertisseur HTML => PDF
 * Distribué sous la licence LGPL. 
 *
 * @author        Laurent MINGUET <[email protected]>
 * 
 * isset($_GET['vuehtml']) n'est pas obligatoire
 * il permet juste d'afficher le résultat au format HTML
 * si le paramètre 'vuehtml' est passé en paramètre _GET
 */
     // récupération du contenu HTML
     ob_start();
     $num = 'CMD01-'.date('ymd');
     $nom = 'DUPONT Alphonse';
     $date = '01/01/2010';
    
//   $a = $_POST['codigo'];
    $a = '17';        
   include("conex.phtml"); 
   $link=Conectarse(); 
  $result=mysql_query("select * from galeria where codigo='$a'",$link); 
   $row = mysql_fetch_array($result) 
            
 
?>
<style type="text/css">
 
<!--
 
.Estilo1 {
 
    font-size: 24px;
 
    font-weight: bold;
 
}
 
.Estilo2 {color: #FF0000}
 
-->
 
</style>
<table width="710" height="842" border="0" cellpadding="0" cellspacing="0" background="grafico2.jpg">
 
  <tr>
 
    <th height="60" scope="row"><span class="Estilo1"><br />
 
        <span class="Estilo2">VENTA</span></span></th>
 
  </tr>
 
  <tr>
 
    <th height="174" scope="row"><img src="17_0208_003.jpg" width="602" height="439" /></th>
 
  </tr>
 
  <tr>
 
    <th height="165" scope="row"> </th>
 
  </tr>
 
  <tr>
 
    <th height="155" scope="row"> </th>
 
  </tr>
 
  
 
</table>
<?php
     $content = ob_get_clean();
    
    // conversion HTML => PDF
    require_once(dirname(__FILE__).'/../html2pdf.class.php');
    try
    {
        $html2pdf = new HTML2PDF('P','A4','fr', false, 'ISO-8859-15', 0);
        $html2pdf->pdf->SetDisplayMode('fullpage');
        $html2pdf->writeHTML($content, isset($_GET['vuehtml']));
        $out = 'vidriera'.$row["codigo"].'.pdf';        
        $html2pdf->Output($out);
    }
    catch(HTML2PDF_exception $e) { echo $e; }     
 

 
 

