I'm converting a Joomla 3 component to make it compatible with Joomla 4. I'm having an issue when trying to use fpdf. In joomla 3, the fpdf file was included like this at the top of the model : include('./components/com_mycomp/libraries/fpdf/morepagestable.php');
Then the pdf class was called this way in a function : $pdf=new PDF('P','mm','A4');
I did the same in Joomla 4 but got the following error : Class 'Mycomp\Component\Mycomp\Administrator\Model\PDF' not found
Still haven't found the correct way to include the class
Thanks in advance for your help