I notice that phpMyAdmin is using both FPDF and UFPDF
I suggest to replace both libraries with TCPDF
integrates all functionalities of the previous (and
more), it's more stable and better documented.
The only issue is that TCPDF require PHP5 but a PHP4
compatible version requires just few "search and replace".