问题描述
我想了解 tcpds 因为它可以支持阿拉伯语但是
我需要学习如何将图像放入单元格中,请问我该怎么做?
代码是
// Write Contect here
$html = '<table align="center" dir="rtl" style="width: 90%; border-collapse: collapse; border: 1px solid #000000">
<tr>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
محمد</td>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
الاهلي</td>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
محمد</td>
</tr>
<tr>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
<img alt="" height="168" src="https://www.majorgeeks.com/images/logos/majorgeeks.gif" width="172" /></td>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
</td>
</tr>
<tr>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
</td>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
</td>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
</td>
</tr>
<tr>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
</td>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
</td>
<td colspan="3" dir="rtl" style="text-align: center; border-left: 1px solid #C0C0C0; border-right-style: solid; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-style: solid; border-bottom-width: 1px">
</td>
</tr>
</table>
';
$pdf->SetFont('tahoma','',10);
$pdf->SetXY(60,70);
$pdf->writeHTML($html,true,false,'');
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)