我想在生成的 PDF 中添加一个带有版权符号的单元格。但是添加单元格输出会在开头显示一些不需要的符号。需要一个解决方案。
\n\nfunction Footer {\n$this->SetTextColor(96,96,96);\n$this->SetFont('Times','B',12);\n$this->Cell(0,5,'abc Limited',0,2,'C',0);\n$this->Cell(50,5,'',0,2,'C',0);\n$this->Cell(0,5,'this is address',0,2,'C',0);\n$this->Cell(188,5,'','B',1,'c',0); \n$this->Cell(50,5,'',0,2,'C',0); \n$this->Cell(0,5, '\xc2\xa9All rights reserved abc Ltd',0,1,'C',0);\n}\nRun Code Online (Sandbox Code Playgroud)\n
我尝试了“©”建议,但它显示的只是字面上的“©”,所以我尝试了其他一些选项。只需简单的 chr 就可以很好地工作......
$this->Cell(0, 5, chr(169) . ' All rights reserved, etc', 0, 1, 'C', 0);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5144 次 |
| 最近记录: |