В class.php есть метод HTMLtoPDF:
static function HTMLtoPDF($html, $size, $orientation, $file){
header('HTTP/1.1 200 OK');
header("Cache-Control: public, must-revalidate");
header("Pragma: no-cache");
header("Content-type: application/force-download");
header('Accept-Ranges: bytes');
header("Content-Encoding: None");
header("Vary:");
header('Content-Transfer-Encoding: Binary');
require_once("dompdf/dompdf_config.inc.php");
$dompdf = new DOMPDF();
$dompdf->set_paper($size, $orientation);
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream($file);
exit;
}
В stream нужно передать 2 параметра: stream($file, array('Content-Disposition' => $file, "Attachment" => false));
Attachment = будет загружать pdf в браузере или отдавать файл на загрузку.
Плохо что нельзя кастомизировать работу этого метода :(