gpt4 book ai didi

php - 如何在 FPDF 中添加版权符号?

转载 作者:行者123 更新时间:2023-12-02 15:21:52 26 4
gpt4 key购买 nike

我想在生成的 PDF 中添加一个带有版权符号的单元格。但是添加单元格输出会在开头显示一些不需要的符号。需要对此的解决方案。

function Footer {
$this->SetTextColor(96,96,96);
$this->SetFont('Times','B',12);
$this->Cell(0,5,'abc Limited',0,2,'C',0);
$this->Cell(50,5,'',0,2,'C',0);
$this->Cell(0,5,'this is address',0,2,'C',0);
$this->Cell(188,5,'','B',1,'c',0);
$this->Cell(50,5,'',0,2,'C',0);
$this->Cell(0,5, '©All rights reserved abc Ltd',0,1,'C',0);
}

最佳答案

我尝试了“©”建议,但它显示的只是字面上的“©”,所以我尝试了一些其他选项。只需简单的 chr 就可以正常工作...

$this->Cell(0, 5, chr(169) . ' All rights reserved, etc', 0, 1, 'C', 0);

关于php - 如何在 FPDF 中添加版权符号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35199969/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com