rahman_akon18 rahman_akon18 - 5 months ago 75
PHP Question

How to add copyright symbol in FPDF (Solved)

I want to add a cell in a generated PDF with a copyright symbol .But adding the cell output shows some unwanted symbol at the beginning. Need a solution on this.

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);
$this->Cell(0,5,iconv("UTF-8", "ISO-8859-1", "©").'All rights reserved Ltd.',0,1,'C',0);
}

Answer
function Footer {   
    $this->Cell(0,5,iconv("UTF-8", "ISO-8859-1", "©").'All rights  reserved     
Ltd.',0,1,'C',0);
}