Where is the setting of Dompdf to preview attached PDF document instead of downloading attachment
Change dompdf to preview PDF on browser
-
- User
- Posts: 9401
You can update the "Export" function of class "cExportPdf" in phpfn12.php to make the pdf open in browser.
From
$dompdf->stream($gsExportFile . ".pdf", array("Attachment" => 1)); // 0 to open in browser, 1 to download
To
$dompdf->stream($gsExportFile . ".pdf", array("Attachment" => 0)); // 0 to open in browser, 1 to download