【发布时间】:2016-07-20 06:09:01
【问题描述】:
当我尝试加载位于我的 Laravel 项目的存储目录中的 HTML 文件时。我正确指定了路径并且文件在那里。
我尝试将 html 文件移动到供应商地图中 dompdf 的根目录,但这没有帮助。 更改 chroot 的路径会与 dompdf 本身的其他部分混淆。给出一个关于无法找到字体的错误。
这是我得到的错误
`Permission denied on <!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div class="body">
<h2>test</h2>
<hr/>
<p class="content">content test</p>
</div>
</body>
</html>. The file could not be found under the directory specified by Options::chroot.`
我可以在 dompdf.php 或 Options.php 中进行任何更改以使其正常工作吗?
【问题讨论】: