我尝试将使用mPDF插件的pdf与最新版本合并,但在使用pdf版本1.3但未完成1.5时,PDF合并工作时出现错误
我试过下面的代码
<?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');
?>
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误
mPDF error: Unable to find xref table - Maybe a Problem with auto_detect_line_endings
提前致谢