Dompdf\Dompdf::stream
Streams the PDF to the client.
The file will open a download dialog by default. The options parameter controls the output. Accepted options (array keys) are: 'compress' = > 1 (=default) or 0: Apply content stream compression 'Attachment' => 1 (=default) or 0: Set the 'Content-Disposition:' HTTP header to 'attachment' (thereby causing the browser to open a download dialog)
Signature
public function stream([string
$filename = "document.pdf",
[array
$options = ]] )
Parameters
$filename
— string- the name of the streamed file
$options
— array- header options (see above)