I get following error when trying to generate a pdf using php by making use of html2fpdf

StackOverflow https://stackoverflow.com/questions/10626993

  •  09-06-2021
  •  | 
  •  

Pergunta

Warning: include(font/helvetica.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\php\PEAR\fpdf.php on line 541

Warning: include() [function.include]: Failed opening 'font/helvetica.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\php\PEAR\fpdf.php on line 541
FPDF error: Could not include font metric file

please help.

Foi útil?

Solução

You may need to configure that in one of the php files - I remember vaguely coming into that issue. There's a CONSTANT variable with a path to fonts folder. Check for it in the main php file.

Or you could just create that directory and copy the font into that directory.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top