嗨,我正在尝试使用PHP将html转换为pdf.代码能够运行,我能够运行它并下载pdf文件但是当我打开pdf文件时它给了我这个错误

这是我运行php的代码
<?
require_once("dompdf/dompdf_config.inc.php");
$html =
'<html><body>'.
'<p>Put your html here, or generate it with your favourite '.
'templating system.</p>'.
'</body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");
?>
Run Code Online (Sandbox Code Playgroud)
我有一种感觉,我正在加载HTML错误,所以pdf的内容实际上搞乱了,任何想法?