Bonjour,
En prenant pour base l'exemple #1 de la doc TCPDF, je ne comprends ce qu’il manque à mon code pour afficher la numérotation de page.
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
 
$html = $_SESSION['treeDownPdf'];
$html['list'] = preg_replace("#<a .*>(.*)</a>#isU", '$1', $html['list']);
 
$pdf = new TCPDF('L', 'mm', 'A4');
$pdf->SetHeaderData('', 0, $html['h2'], '', array(0,64,255), array(0,64,128));
$pdf->setFooterData(array(0,64,0), array(0,64,128));
 
$pdf->SetFont('Helvetica','',9);
$pdf->AddPage();
$pdf->setPageMark();
 
$pdf->SetMargins(15, 15);
$pdf->SetY(15);
$pdf->writeHTMLCell(0, 0, '', '', $html['root'], 0, 1, 0, true, '', true);
$pdf->writeHTMLCell(0, 0, '', '', $html['list'], 0, 1, 0, true, '', true);
 
$pdf->Output();