Frank Schneider Posted March 2 Share Posted March 2 i update my PHP from 7.4 to 8.0 and now i get an error while printing pdf with mPdf -> mPDF error: No font or default font set! i try set define('_MPDF_TTFONTPATH', __DIR__ . '/ttfonts'); in config_fonts.php but nothing change. Did anyone know how to fix this error? Link to comment Share on other sites More sharing options...
Markus Thomas Posted March 6 Share Posted March 6 On 3/2/2023 at 9:58 AM, Frank Schneider said: i try set define('_MPDF_TTFONTPATH', __DIR__ . '/ttfonts'); in config_fonts.php Sounds you use a mPDF-Version < 8.0.10 PHP 8 is not supported on older versions. -> https://github.com/mpdf/mpdf Link to comment Share on other sites More sharing options...
Frank Schneider Posted March 6 Author Share Posted March 6 How i upgrade? Link to comment Share on other sites More sharing options...
Markus Thomas Posted March 7 Share Posted March 7 If you are using Pages2PDF eg. WirePDF you can update the module from my updated fork: https://github.com/markusthomas/Pages2Pdf Link to comment Share on other sites More sharing options...
Frank Schneider Posted March 7 Author Share Posted March 7 Thanks this helps Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now