1

Bonjour, j'ais parcouru les exemple de html2pdf,mais je ne vois pas d'ou vient l'erreur sur ma page.j'utilise php5 et htm2pdf 3.13.
j'obtiens constament l'erreur suivante:
le contenu d'une balise TD ne rentre pas sur une seule page

je vous envois le code source:

<?php

/*include('connexion.php');
$lang="fr";
$id_produits=168; //$_GET["id_produits"] ;

// requette produit
$sql='Select * From produits_'.$lang.' WHERE id_produits = '.$id_produits ;
$req=mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
$data = mysql_fetch_array($req); */

ob_start();
?>


<style type="text/css">
<!--

body {
font-family : "Trebuchet MS", Georgia, Arial, Verdana;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
#Summary, #Caption {
width : 28em;
}
.text {
text-align: center;

color : #000000;
font-size: 10px;
margin-left:5px;
margin-right: 5px;
}
.text_gros {
color: #E08147;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.tableStyle {
width : 100%;
margin : 0 0 0 0;
padding : 0 0 0 0;
border-collapse: collapse;
}
.firstColumn {
padding : 0 10px 0 10px;
border : solid #f2f2f2;
border-width : 1px 1px 0 1px;
background-color : #f7f7f7;
text-align : left;
font-weight : bold;
color : #333333;
font-size: 10px;
}
.SecondColumn {
border : 1px solid #f2f2f2;
border-width : 1px 0 0 0;
background-color : #fbfbfb;
color : #666666;
text-align : center;
font-size: 10px;
}
.text_gauche_gris {
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
text-align: right;
color: #999999;
padding-right:5px;
}
.texte-produit {
text-align:left;
text-align: justify;
color : #000000;
font-size: 10px;
margin-left:5px;
margin-right: 5px;
}
.fonctionnement {
width:250px;
float: left;
padding-left:0px;
text-align : justify;
color : #000;
font-weight : bold;
font-size: 10px;
}
.description_courte {
padding : 0 0 0 260px;
text-align : justify;
color : #000;
font-weight : bold;
font-size: 10px;
}
.photo{
float:left;
margin : 10px 10px 2px 10px;
}
.photo1{
float:left;

}
.photo2{
float:right;

}


td.bkg_tabl {
background-image : url(photo_produit/popup_p_bg04.gif);
height : 34px;
background-repeat : no-repeat;
}
td.bkg_tabl2 {
background-image : url(photo_produit/popup_p_26.jpg);
height : 5px;
font-size:10px;
}
.texte-produit1 {text-align:left;
text-align: justify;
color : #000000;
font-size: 10px;
margin-left:5px;
margin-right: 5px;
}

-->
</style>
<page backtop="40mm" backbottom="10mm">
<table Style="width:785; " ><!--align="center"-->
<tr>
<td style="height:90; background-imagetonguehoto_produit/fiche_PDF_2_r1_c1.jpg" ><div class="text_gauche_gris">ACTIVE MEDIA CONCEPT<br />
Tel : 00 33 4 93 65 23 78<br />
Fax : 00 33 4 93 65 35 01<br />
WWW.AMC-TEC.COM <br />Mise a jour fiche :</div></td>
</tr>
</table>
</page>


<?php
$content = ob_get_clean();
require_once('convert/html2pdf.class.php');
$pdf = new HTML2PDF('P','A4', 'fr');
$pdf->WriteHTML($content, isset($_GET['vuehtml']));
$pdf->Output();
?>

2

déjà, essaye de preciser les unités...

width:785 : c'est des px, des pt, des mm ?
Ancien pseudo : lolo

3

J'ai resolu mon problem.Merci
j'ai un autre problem,je poste un autre sujet

4

le problème venait d'où ? afin que ca serve à d'autres utilisateurs...
Ancien pseudo : lolo

5

Salut kxtino,

Comme le dit si bien Spipu, j'aimerais avoir la résolution du problème, car j'y suis confronté !

Merci, cordialement