1

i got this error

PHP Fatal error:  Uncaught Exception: FPDF error: No font has been set

my code

define('FPDF_FONTPATH','font/');
require('fpdf.php');

my php file is in the same folder than fpdf.php

Any idea ? thank you

Romain Clouet
  • 41
  • 1
  • 2

1 Answers1

1

Insert this in your file:

 $pdf->SetFont('helvetica','',10);
vinuales
  • 31
  • 2