Hi Experts,
pdf successfully generated but failed to open and how to save it in files folder
<?php
// reference the Dompdf namespace
use Dompdf\Dompdf;
$dompdf = new Dompdf();
$dompdf->loadHtml('hello world');
// (Optional) Setup the paper size and orientation
$dompdf->setPaper('A4', 'landscape');
// Render the HTML as PDF
$dompdf->render();
// Output the generated PDF to Browser
$dompdf->stream();
//$dompdf->Output("files/just_test.pdf", "D"); // save the file
?>
Thanks in advance