I'm using dompdf to generate PDFs in my Laravel application. I'm trying to convert a font to so I can use it in a pdf, but there are some issues with it. Initially, I received the "Class 'Font' not found" error, which I was able to solve by downloading the repository and copying it to the right location as marked here on StackOverflow. This solved my issue, but in turn generated a new one: "Class 'Font_Metrics' not found", which I have not been able to solve.
Additional info:
dompdf was installed via composer and works correctly - PDF generation is fully functional
PHP Fatal error: Class 'Font_Metrics' not found in vendor/dompdf/dompdf/load_font.php on line 67
PHP Stack trace:
PHP 1. {main}() vendor/dompdf/dompdf/load_font.php:0
PHP 2. call_user_func_array:{vendor/dompdf/dompdf/load_font.php:171}() vendor/dompdf/dompdf/load_font.php:171
PHP 3. install_font_family() vendor/dompdf/dompdf/load_font.php:171
Hi
I'm using dompdf to generate PDFs in my Laravel application. I'm trying to convert a font to so I can use it in a pdf, but there are some issues with it. Initially, I received the "Class 'Font' not found" error, which I was able to solve by downloading the repository and copying it to the right location as marked here on StackOverflow. This solved my issue, but in turn generated a new one: "Class 'Font_Metrics' not found", which I have not been able to solve.
Additional info:
Stack trace:
Any help is appreciated