I got this error when I transferred HTML to PDF in my project. It works in the server fine but in the local XAMPP it not working, it always returns this error.
Required parameter $currentfont follows optional parameter $isunicode
/xxx/vendor/tecnickcom/tcpdf/include/tcpdf_fonts.php:1998
I am using PHP Codeigniter. How could I solve this problem.
I got the solution to download latest TCPDF file and replace old TCPDF, now it works fine in my local XAMPP.
If your PHP version 8.00 or more it will display many error.
To solve this problem download Latest TCPDF file from here: https://sourceforge.net/projects/tcpdf/files/
Question and answer is powered by AnsPress.io