所以,我是fpdf的新手。也許有人知道如何用變量獲取圖像,然後將其插入單元格中。我的sintax有問題。圖像作爲變量,然後插入它使用FPDF和PHP
$image1 = "../_resources/img/xstampa/stampa_18_grey.png";
$stampanumero = $letterposition[$position].$image1;
$p->Cell(7, 5, $stampanumero, 1,'L');
的問題是,$此搜索打印爲文本../_resources/img/xstampa/stampa_18_grey.png。它不抓住圖像。
[插入PHP和FPDF圖像(http://stackoverflow.com/questions/3471441/inserting-an-image-的可能重複創建圖像with-php-and-fpdf) – Polynomial 2012-07-25 10:37:35