The results are correct.
I want to create PDF fixed width and auto height. Not up a new page.
code
$content = '';
$content .= '<!DOCTYPE html>';
$content .= '<body>';
for($i=0; $i<100; $i++){
$content .= '<div>' . $i . '</div>';
}
$content .= '</body>';
$content .= '</html>';
$mpdf = new mPDF();
$mpdf->WriteHTML($content);
$mpdf->page = 0;
$mpdf->state = 0;
unset($mpdf->pages);
$p = 'P';
$mpdf->_setPageSize(array(100, $mpdf->y), $p);
$mpdf->addPage('', '', 0, '', 1, 1, 3, 0, 0, 0);
$mpdf->WriteHTML($content);
$mpdf->Output();
Invalid results.
How do I fix it?