微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

php – PDF不合并大于使用mPDF的PDF-1.5版本

我尝试使用mPDF插件与最新版本合并pdf,但是
错误来了
PDF合并时使用pdf版本1.3但未完成1.5

我已经尝试下面的代码

<?PHP
$mihir='<html>
<body>
  Generate PDFs with merge
</body>
</html>';    

require_once("MPDF/mpdf.PHP");
$mpdf=new mPDF(); 
$mpdf->SetdisplayMode('fullpage');
$mpdf->list_indent_first_level = 0; 
$mpdf->WriteHTML($mihir);

$mpdf->AddPage();
$mpdf->SetImportUse();
$pagecount = $mpdf->SetSourceFile("order_form_instructions_energy_supply.pdf");
$tplId = $mpdf->ImportPage($pagecount);
$mpdf->UseTemplate($tplId);
$mpdf->Output('test.pdf','D');
?>

我收到这个错误

mPDF错误:无法找到xref表 – 也许是auto_detect_line_endings的问题

提前致谢

RAX:
你尝试过不同的pdf文件吗?这可能会帮助您:
http://www.vankouteren.eu/blog/2009/07/fpdf-error-unable-to-find-xref-table/

One of the PDFs which should be merged was originally created from Word by a PDF creator which placed its signature in the properties of the PDF document. After removing this signature (in this case opening the PDF with Adobe Illustrator and saving it again) the problem was solved.

原文地址:https://www.jb51.cc/php/132113.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐