我在网上搜索了一些关于此的内容,但我没有找到任何内容:
Problem: Image object not found for background pattern
我正在做的是使用docs作为我的向导从外部PDF导入pdf页面,但是当我输出完成的pdf时我不断收到此错误。这最近有效。我的代码如下:
$mpdf = new mPDF();
$mpdf->SetImportUse();
foreach ($orders->result() as $order) {
$pdf = $shipments->getArtifact($order->artifact_url);
file_put_contents(HOMEPATH . "invoice_pdfs/" . $order->id . "temp.pdf", $pdf);
$pagecount = $mpdf->SetSourceFile("invoice_pdfs/" . $order->id . "temp.pdf");
$tplId = $mpdf->ImportPage($pagecount, 50, 50, 100, 100);
$mpdf->UseTemplate($tplId, '', '', 100, 100);
$mpdf->WriteHTML('<pagebreak />');
unlink("invoice_pdfs/" . $order->id . "temp.pdf");
}
$mpdf->Output("invoice_pdfs/myCave" . date('Ymd') . "Labels.pdf", 'F');