view pdf without downloading using dompdf
Try using the below code. Let me know are you create data from form or html file data.
$dompdf->stream("dompdf_out.pdf", array("Attachment" => false));
exit(0);
If someone still looking for answer and it's still not resolved, try installing and turning on the PDF Viewer / PDF JS extension in the browser.
After adding parameter array(“Attachment”=>0)
or array(“Attachment”=>false)
to the stream and still not working. It's because your browser doesn't have a pdf reader available/activated. Installing and activating browser extension like PDF Viewer / PDFJS will force the browser to read and review the pdf.