我正在使用DomPDF生成pdf文件 . 我也使用load_font嵌入了中文字体,但我不知道为什么acrobat reader无法打开它 . 尝试过文件阅读器或foxit阅读器,Chrome浏览器正常打开 . 错误:

there was an error processing a page. there was a problem reading this document (135)

我的HTML:

<span style="color: #000;font-family:Arial,chinese,sans-serif;"> @content@</span>

dompdf_font_family_cache:

'chinese' => 
  array (
    'normal' => DOMPDF_FONT_DIR . 'chinese',
    'bold' => DOMPDF_FONT_DIR . 'chinese',
    'italic' => DOMPDF_FONT_DIR . 'chinese',
    'bold_italic' => DOMPDF_FONT_DIR . 'chinese',
  ),

php代码:

$dompdf = new DOMPDF();
$dompdf->load_html($voucherpdf);
$dompdf->set_paper(DOMPDF_DEFAULT_PAPER_SIZE, "landscape");
$dompdf->render();
echo $dompdf->output();

如果我删除中文并再次生成,则acrobat阅读器可以正常打开

所以任何人都可以给我一个解决方案,试过很多方式找到它但没有工作 .