I have created a PHP file, the file contains a base64 image, then try to browse the file it displays the image but when convert file to pdf using dompdf the image is not showing
function getdata($visit){
require_once 'dompdf/autoload.inc.php';
$dompdf = new Dompdf();
$dompdf->set_option('isRemoteEnabled', TRUE);
$file='http://localhost/xxx/production/datafile.php?id=';
$file .=$visit;
$dompdf->setPaper('A4', 'landscape');
$dompdf->load_html_file($file);
$dompdf->render();
$dompdf->stream();
}```
in datafile, I have attached bease64 image
Signature:.<?php echo '<img height="75%" width="150px" src="data:image/png;base64,' . $Base64img . '" />'; ?>