while trying to print a greek character 'φ'
I get the following character printed on the pdf 'φ'
I will leave this here for the next ones.
FPDF has its own guide for importing new fonts for specific encodings. The steps are:
$pdf->AddFont('Courier New', '', 'Courier New.php');
$pdf->SetFont('Courier New', '', 20);
$text = iconv('UTF-8', 'ISO-8859-7', $text);
$pdf->Write(20,$text);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With