0

I am generating a PDF report with using FPDF and there is some characters like delta and alpha (δ , Δ , α) etc... But FPDF doesn't appear to work with such characters.

I tried the following Link solution but it didn't work.

Thanks in advance

here is a sample :

$pdf->Multicell(10 , 20 , 'δz (mm)' , 1  ,'C');
bg1
  • 54
  • 8

1 Answers1

1

To print the delta (and other special characters) you need to use the included Symbol font.

a

You can view a font dump of all the included fonts at this link.

http://www.fpdf.org/en/script/fontdump.pdf

On page 2 of the PDF the Symbol font delta character is listed as code 68.

dir

Set the font:

$pdf->SetFont('symbol');

To print the delta character you would use chr(68) for the string argument.

$pdf->Multicell(10 , 20 , chr(68) , 1 ,'C');