Forum


Replies: 1   Views: 3285
Missing class font_metrics
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by ekaufman  · 21-06-2018 - 17:31

We are running 7.5.  Getting the following error when we are exporting content.  Any help with a resolution?

 

Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Font_Metrics' not found in /home/forge/copypresscms/thirdparty/phpdocx/lib/dompdfParser/include/styleparser.cls.php:801

Posted by admin  · 21-06-2018 - 18:03

Hello,

In phpdocx 7.5 (phpdocx moved dompdf and tcpdf files to single classes), that class is available in lib/pdf/include/font_metrics.php . Please check you have copied all files of the library and the autoloader of phpdocx hasn't been changed and it has been loaded correctly; we have done some quick tests and that class is loaded correctly. Also please test your script using the library standalone.

Regards.