插入多个图像 FPDF
Inserting Multiple image 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
所以我已经解决了 $pdf->Cell(0, 0,asd $pdf>Image('../img/printing/LOGO.jpg', 0,0,50,0,"","home.php"),0,'L');
没有跟随单元格当前位置的问题。所以我必须将它与当前位置相匹配。 $pdf->Cell(0, 0,asd $pdf>Image('../img/printing/LOGO.jpg', 160,0,50,0,"","home.php"),0,'L');
如下面的完整代码部分
$x = 160;
$y = $y;
$pdf->SetXY($x, $y);
$pdf->Cell(0, 0, $pdf->Image('../img/printing/LOGO.jpg',160,0,50,0,"","home.php"),
0, 'L'); //-->THIS PART IS NOT WORKING
我想使用单元格将图像放在不同的位置
这是我的部分代码:
$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
所以我已经解决了 $pdf->Cell(0, 0,asd $pdf>Image('../img/printing/LOGO.jpg', 0,0,50,0,"","home.php"),0,'L');
没有跟随单元格当前位置的问题。所以我必须将它与当前位置相匹配。 $pdf->Cell(0, 0,asd $pdf>Image('../img/printing/LOGO.jpg', 160,0,50,0,"","home.php"),0,'L');
如下面的完整代码部分
$x = 160;
$y = $y;
$pdf->SetXY($x, $y);
$pdf->Cell(0, 0, $pdf->Image('../img/printing/LOGO.jpg',160,0,50,0,"","home.php"),
0, 'L'); //-->THIS PART IS NOT WORKING