Código PHP:
Ver original<?php
require_once("dompdf/dompdf_config.inc.php");
$code = '<html><head><title>Hola</title></head>
<body><h1>Hola Mundo</h1></body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($code);
$dompdf->render();
$dompdf->stream("mipdf.pdf", array("Attachment" => 0)); ?>
Aqui dicen esto
Cita: Q: How can I make PDFs open in the browser window instead of opening the download dialog?
A: This is controlled by the "Attachment" header sent by dompdf when it streams the PDF to the client. You can modify the headers sent by dompdf by passing additional options to the $dompdf->stream() function: