Here is my code, I mostly tried all the methods for displaying image on PDF but still didnt work. Could you please help me for this. I also set DOMPDF_ENABLE_REMOTE to true and still results is same.
require_once("dompdf/autoload.inc.php");
//require('WriteHTML.php');
$html = '<body>
<div id="watermark"><img src="/var/htdocs/PDF/header.png" height="100%" width="100%"></div>
<div id="header">
<h3 style="padding-top:10px;">'.$_POST['name'].'</h3>
</div>
<div id="footer">
<h3 style="padding-top:8px; padding-right:25px;" class="CIJ">ABSOLUTE MARKET INSIGHTS</h3>
</div>
<div>
<br><br><div class="ooo" style="padding-top: 20px;">'.$_POST['comment'].'</div>
</div>
</body>';
use Dompdf\Dompdf;
$dompdf = new Dompdf();
$canvas = $dompdf->get_canvas();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream($_POST["name"], array("Attachment" => false));