|
|
|
|
<?php
ob_start();
?>
<page>
<table width="760" height="1126" border=0 style="background:url(../../../images/bdc3.jpg);">
<tr>
<td valign="top">
<table border=0 width=760 height=112>
<tr>
<td>
</td>
</tr>
</table>
<table border=0 width=760 height=20>
<tr>
<td width=590>
</td>
<td>bbbb
</td>
</tr>
</table>
<table border=0 width=760 height=30>
<tr>
<td>
</td>
</tr>
</table>
<table border=0 width=760 height=75>
<tr>
<td width=355>
</td>
<td>bbbbbbbb
<br>
bbbbb
<br>
bbbb
<br>
bbbb
</td>
</tr>
</table>
<table border=0 width=760 height=30>
<tr v align="top">
<td width="220">
</td>
<td>bbbbb
</td>
</tr>
</table>
<table border=0 width=760 height=55>
<tr>
<td>
</td>
</tr>
</table>
<table border=0 width=760 height=42>
<tr>
<td width=5>
</td>
<td>bbbbb
</td>
</tr>
</table>
<table border=0 width=760 height=30>
<tr>
<td width=195>
</td>
<td><span style="margin-left:25px;">bbbbbb</span>
<br>
bbbbbb
</td>
</tr>
</table>
<table border=0 width=760 height=70>
<tr>
<td>
</td>
</tr>
</table>
<TABLE border=0 height="350" width=760>
<TR valign="top">
<TD width=80>bbbb</TD>
<TD width=310>bbbbb</TD>
<TD width=72>bbbbbb</TD>
<TD width=82>bbbbbb</TD>
<TD width=82>bbbbb</TD>
</TR>
</table>
<table border=0 width=760 height=0>
<tr>
<td>
</td>
</tr>
</table>
<table border=0 width=760 height=0>
<tr>
<td width=660>
</td>
<td>bbbbbbbb
</td>
</tr>
</table>
<table border=0 width=760 height=40>
<tr>
<td>
</td>
</tr>
</table>
<table border=0 width=760 height=25>
<tr>
<td width="242">bbbbbb
</td>
<td width="245">bbbbbb
</td>
<td>bbbbbbb
</td>
</tr>
</table>
<table border=0 width=760 height=165>
<tr>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
</page>
<?php
$content = ob_get_clean();
require_once(dirname(__FILE__).'/../html2pdf.class.php');
$pdf = new HTML2PDF('P','A4');
$pdf->WriteHTML($content, isset($_GET['vuehtml']));
$pdf->Output();
?>
Configuration: Windows XP Firefox 3.0
Vous avez une page PHP non HTML vous ne pouvez pas convertir cette page en PDF ,il faut qu'elle soit en HTML.
en premier vous devez convertir la page PHP en page HTML et puis pensez la convertir en PDF. SALUTATIONS |
la nouvelle version 3.10 de html2pdf prend maintenant en compte les background-image.
http://html2pdf.spipu.net/ |
Résultats pour HTML2PDF et les tables :s
Résultats pour HTML2PDF et les tables :s
Résultats pour HTML2PDF et les tables :s
Résultats pour HTML2PDF et les tables :s
Résultats pour HTML2PDF et les tables :s