在网格中显示来自服务器的 TCPDF 图像

问题描述

我需要在网格中显示来自服务器的 tcpdf 中的图像。每行两个图像。这是我的代码。它只显示一行。请协助。

Check the screenshot


$fitBox = $horizontal_alignments[$i];

$x = 15;

for ($j = 0; $j < 1; ++$j) {

    $fitBox[1] = $vertical_alignments[$j];
    $rid = intval($_GET['rid']);
    $count = "SELECT * from assessmentimages where ReportId=$rid";
    foreach ($dbh->query($count) as $row1) {
        $pdf->Image('assessmentimages/' . $row1['Image1'],$x,$y,$w,$h,'','CM',true,150,false,1,$fitBox,false);
        $pdf->SetFont('',11);
        $pdf->Cell(93,107,$row1['Desc1'],0);

        $x += 90; // new column
    }
}
$y += 90; // new row

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)