我可以将mpdf文档输出为HTML字符串或文件而不是pdf吗?这对调试很有帮助。
示例:
$mpdf->WriteHTML($page_config_css, 1);
$mpdf->SetHTMLHeader($header_first_page);
$mpdf->WriteHTML($output_first_page);
$mpdf->SetHTMLHeader($header);
$mpdf->SetHTMLFooter($footer);
$mpdf->WriteHTML($main_content);
// Can I output it at this stage as html for inspection?
$mpdf->Output();