ili
$contents = $pdf->ezOutput();
$filesize = strlen($contents);
$filename = "dump.pdf";
header("Content-Type: application/pdf");
header("Content-Length: $filesize");
header("Content-Disposition: attachment; filename=$filename");
ob_start();
echo $contents;
ob_end_flush();
|