| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/laragon3/www/antrian/petugas/assets/html2pdf_v4.03/examples/res/ |
Upload File : |
<page backtop="10mm" backbottom="10mm" backleft="20mm" backright="20mm">
<page_header>
<table style="width: 100%; border: solid 1px black;">
<tr>
<td style="text-align: left; width: 33%">html2pdf</td>
<td style="text-align: center; width: 34%">Test d'header</td>
<td style="text-align: right; width: 33%"><?php echo date('d/m/Y'); ?></td>
</tr>
</table>
</page_header>
<page_footer>
<table style="width: 100%; border: solid 1px black;">
<tr>
<td style="text-align: left; width: 50%">html2pdf.fr</td>
<td style="text-align: right; width: 50%">page [[page_cu]]/[[page_nb]]</td>
</tr>
</table>
</page_footer>
<span style="font-size: 20px; font-weight: bold">Démonstration des retour à la ligne automatique, ainsi que des sauts de page automatique</span><br>
<br>
<br>
<table style="width: 80%;border: solid 1px #5544DD; border-collapse: collapse" align="center">
<thead>
<tr>
<th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Header 1</th>
<th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Header 2</th>
</tr>
</thead>
<tbody>
<?php
for ($k=0; $k<13; $k++) {
?>
<tr>
<td style="width: 30%; text-align: left; border: solid 1px #55DD44">
test de texte assez long pour engendrer des retours à la ligne automatique...
a b c d e f g h i j k l m n o p q r s t u v w x y z
a b c d e f g h i j k l m n o p q r s t u v w x y z
</td>
<td style="width: 70%; text-align: left; border: solid 1px #55DD44">
test de texte assez long pour engendrer des retours à la ligne automatique...
a b c d e f g h i j k l m n o p q r s t u v w x y z
a b c d e f g h i j k l m n o p q r s t u v w x y z
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Footer 1</th>
<th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Footer 2</th>
</tr>
</tfoot>
</table>
<br>
Ca marche !!!<br>
refaisons un test : <br>
<table style="width: 80%;border: solid 1px #5544DD">
<?php
for ($k=0; $k<12; $k++) {
?>
<tr>
<td style="width: 30%; text-align: left; border: solid 1px #55DD44">
test de texte assez long pour engendrer des retours à la ligne automatique...
a b c d e f g h i j k l m n o p q r s t u v w x y z
a b c d e f g h i j k l m n o p q r s t u v w x y z
</td>
<td style="width: 70%; text-align: left; border: solid 1px #55DD44">
test de texte assez long pour engendrer des retours à la ligne automatique...
a b c d e f g h i j k l m n o p q r s t u v w x y z
a b c d e f g h i j k l m n o p q r s t u v w x y z
</td>
</tr>
<?php
}
?>
</table>
<br>
Ca marche toujours !<br>
De plus, vous pouvez faire des sauts de page manuellement en utilisant les balises <page> </page>, comme ici par exemple :
</page>
<page pageset="old">
Nouvelle page !!!!
</page>