2
我想利用細胞放置在不同位置的圖像插入多個圖片FPDF
這裏是我的代碼部分:
$x = $pdf->GetX();
$y = $pdf->GetY();
$pdf->SetXY($x, $y);
$pdf->Cell(0, 0, $pdf->Image('../img/printing/LOGO.jpg',0,0,50,0,"","home.php"),
0, 'L'); //-->THIS PART IS WORKING
$x = 160;
$y = $y ;
$pdf->SetXY($x, $y);
$pdf->Cell(0, 0, 'asd', 0, 'L'); //-->THIS PART IS WORKING
$x = 160;
$y = $y;
$pdf->SetXY($x, $y);
$pdf->Cell(0, 0, $pdf->Image('../img/printing/LOGO.jpg',0,0,50,0,"","home.php"),
0, 'L'); //-->THIS PART IS NOT WORKING
也許你忘了'LOGOjpg'中的要點? –
@KIKOSoftware我的不好,這是發佈時編輯代碼時的錯字。該代碼仍然無法正常工作。 – Kelpie
是不是你的'$ x'和'$ y'總是一樣的? '$ y = $ y'沒用。 – Justinas