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