Php 如何根据页面内容使setSignatureAppearance()位置成为动态的?

Php 如何根据页面内容使setSignatureAppearance()位置成为动态的?,php,mysql,tcpdf,Php,Mysql,Tcpdf,我正在尝试将setSignatureAppearance()添加到使用tcpdf生成的pdf中。但是签名只是在一个地方移动,而我希望它能够随着签名图像动态移动,因为我的pdf中的数据是完全动态的 我调用了setSignatureAppearance()并在将其与我在标记中添加的图像“sign2.png”匹配后传递了高度和宽度值。但是,如果数据增加,图像会随着数据向下移动,广告签名外观会保持在以前的位置。我希望它与图像一起移动 $html.="<td colspan=\"4\" nowrap

我正在尝试将setSignatureAppearance()添加到使用tcpdf生成的pdf中。但是签名只是在一个地方移动,而我希望它能够随着签名图像动态移动,因为我的pdf中的数据是完全动态的

我调用了setSignatureAppearance()并在将其与我在标记中添加的图像“sign2.png”匹配后传递了高度和宽度值。但是,如果数据增加,图像会随着数据向下移动,广告签名外观会保持在以前的位置。我希望它与图像一起移动

$html.="<td colspan=\"4\" nowrap style=\"text-align: center;border: 1px solid black\">
<b>For B4U Broadband (India) Pvt. Ltd.</b>
<br /><br /><br/>
<div id="digitalSignature">
<img src="C:/Apache24/htdocs/rapid/sign2.png" class="center" width="190" height="85">
</div>
</td> 
</tr>";
$html.="</table>";
}
$html = utf8_decode($html);
$pdf->writeHTML($html, true, 0, true, 0);
$pdf->setSignatureAppearance(110, 217, 90, 50,$page = -1);
$pdf->lastPage();
$pdf->Output('Invoice.pdf', 'I');
$html.=”
B4U宽带(印度)私人有限公司。



"; $html.=”; } $html=utf8\u解码($html); $pdf->writeHTML($html,true,0,true,0); $pdf->setSignatureAppearance(1102179050,$page=-1); $pdf->lastPage(); $pdf->Output('Invoice.pdf',I');
签名外观应随图像动态移动

$html.="<td colspan=\"4\" nowrap style=\"text-align: center;border: 1px solid black\">
<b>For B4U Broadband (India) Pvt. Ltd.</b>
<br /><br /><br/>
<div id="digitalSignature">
<img src="C:/Apache24/htdocs/rapid/sign2.png" class="center" width="190" height="85">
</div>
</td> 
</tr>";
$html.="</table>";
}
$html = utf8_decode($html);
$pdf->writeHTML($html, true, 0, true, 0);
$pdf->setSignatureAppearance(110, 217, 90, 50,$page = -1);
$pdf->lastPage();
$pdf->Output('Invoice.pdf', 'I');