Welcome aboard! We are happy you are here and wish you good net-raft!
<?php
// download from https://php-download.com/package/mpdf/mpdf
require_once $_SERVER['DOCUMENT_ROOT'] . "/php/MPDF57/mpdf.php";
$mpdf=new mPDF();
// create 10 pages and insert the page numbers
for($i=1;$i<=10;$i++){
$mpdf->AddPage();
$mpdf->WriteHTML("<h1>The page number $i <h1>");
}
$mpdf->Output();
exit;
?>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408