如何解决TCPDF 中表格内的图像对齐
我想了解 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 举报,一经查实,本站将立刻删除。