Romain Clouet
Romain Clouet

Reputation: 41

FPDF - No font has been set

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

Upvotes: 1

Views: 3752

Answers (1)

vinuales
vinuales

Reputation: 31

Insert this in your file:

 $pdf->SetFont('helvetica','',10);

Upvotes: 1

Related Questions