PDF convertor * distributed under the LGPL License * * @author Laurent MINGUET * * isset($_GET['vuehtml']) is not mandatory * it allow to display the result in the HTML format */ ob_start(); ?> Ceci est la page 1 du groupe 1 Ceci est la page 2 du groupe 1 Ceci est la page 3 du groupe 1 Ceci est la page 1 du groupe Ceci est la page 2 du groupe pdf->SetDisplayMode('fullpage'); $html2pdf->writeHTML($content, isset($_GET['vuehtml'])); $html2pdf->Output('groups.pdf'); } catch(HTML2PDF_exception $e) { echo $e; exit; }