codice HTML:
define('FPDF_FONTPATH','plugins/FPDF/font');
header('Content-Type: text/html; charset=utf-8');
require('plugins/FPDF/html2pdf.php');
class PDF extends PDF_HTML
{
function Header()
{
$this->Ln(10);
$this->cell(190,5,'TEST & C. S.p.A.',0,1,'C');
$this->cell(190,5,'VIA ROMA - ITALY',0,1,'C');
$this->Ln(10);
}
// Page footer
function Footer()
{
$v_fo = 'AZIENDA';
$a_campiCert = array('scv_cod');
$a_esatto = array('S');
$this->setTextColor(0,0,0);
$this->SetY( - 15);
$this->SetX(25);
$this->SetFont('Arial','I',8);
$this->Cell(30,10,'','LTBR',0,'C');
$this->Cell(30,10,'','LTBR',0,'C');
$this->Cell(30,10,'Page '.$this->PageNo().'/{nb}','LTBR',0,'C');
$this->Cell(40,10,'stampata il '.date('d/m/Y',time()),'LTBR',0,'C');
}
}
// Instanciation of inherited class
$pdf = new PDF('P', 'mm', 'A4', 'it', true, 'UTF-8');
$pdf->AliasNbPages();
$pdf->SetFont('Courier','',10);
$testo_certificazione = html_entity_decode("L’oggetto è fabbricato con Lega di Alluminio alloy 6061");
$pdf->AddPage();
$pdf->WriteHTML(utf8_decode($testo_certificazione), 5);
$pdf->Output();
In allegato trovate il pdf di output. Non capisco perchè il carattere ’ si trasforma in ?