проблема в первой строке 5 кода (мне нужно написать пустую строку WriteHTML('') )
проблема в строке 3 основного файла (AddPage не работает)
Код: Выделить всё
self::init($param);
ob_start();
include $path . '/index.pdf.php';
$output = ob_get_clean();
self::$mpdf->WriteHTML(''); // this line must be exist Otherwise doesn't work
self::$mpdf->WriteHTML($output);
return self::$mpdf->Output($param['fileName'] . '.pdf', self::$dest);
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/78505784/html-output-dont-break-page[/url]
Мобильная версия