0
I am using dompdf to generate pdf and returns this ERROR:
Fatal error: Uncaught Error: Call to Undefined Function Dompdf mb_internal_encoding() in C: Users adnas logisticapratica logisticapratica php pdf dompdf src Dompdf.php on line 274
Code:
<?php
use Dompdf\Dompdf;
require_once 'dompdf/autoload.inc.php';
$dompdf = new DOMPDF();
$dompdf->load_html('<h1>gerar pdf</h1>');
$dompdf->render();
$dompdf->stream(
'teste.pdf',
array(
"Attachment" => false
)
);
?>;
checks whether in your php.ini the extension Extension=php_mbstring.dll is commented
– Lucas Miranda
If it is Linux, it gives php -i grep mbstring. If no occurrence appears, follow what Lucas said above. See the post https://stackoverflow.com/questions/1216274/unable-to-call-the-built-in-mb-internal-encoding-method
– Marcos Xavier