function stream($filename, $options = null) {
		//Helpers::dompdf_debug("trace", "($filename, $options)");

		// Add page text
		$this->_add_page_text();
		$this->_add_internal_links();

		// TCPDF expects file name with extension (cf. Cpdf expects file name without extension) //***
		if (!preg_match('/\.pdf$/', $filename))
			$filename .= ".pdf";

		$options["Content-Disposition"] = $filename;

		if ( isset($options["compress"]) && $options["compress"] == 0 )
		$compress = false;
		else
		$compress = true;

		$this->_pdf->SetCompression($compress);

		$this->_pdf->Output($filename, $options["Attachment"] ? "D" : "I"); // ***
	}
function stream($filename, $options = null) {
		//Helpers::dompdf_debug("trace", "($filename, $options)");

		// Add page text
		$this->_add_page_text();
		$this->_add_internal_links();

		// TCPDF expects file name with extension (cf. Cpdf expects file name without extension) //***
		if (!preg_match('/\.pdf$/', $filename))
			$filename .= ".pdf";

		$options["Content-Disposition"] = $filename;

		if ( isset($options["compress"]) && $options["compress"] == 0 )
		$compress = false;
		else
		$compress = true;

		$this->_pdf->SetCompression($compress);

		$this->_pdf->Output($filename, $options["Attachment"] ? "D" : "I"); // ***
	}
function stream ( $ filename , $ options = null ) { //Helpers::dompdf_debug("trace", "($filename, $options)"); // Add page text $ this -> _add_page_text ( ) ; $ this -> _add_internal_links ( ) ; // TCPDF expects file name with extension (cf. Cpdf expects file name without extension) //*** if ( ! preg_match ( '/\.pdf$/' , $ filename ) ) $ filename .= ".pdf" ; $ options [ "Content-Disposition" ] = $ filename ; if ( isset ( $ options [ "compress" ] ) && $ options [ "compress" ] == 0 ) $ compress = false ; else $ compress = true ; $ this -> _pdf -> SetCompression ( $ compress ) ; $ this -> _pdf -> Output ( $ filename , $ options [ "Attachment" ] ? "D" : "I" ) ; // *** }
Streams the PDF directly to the browser

@param string $filename the name of the PDF file
@param array  $options associative array, 'Attachment' => 0 or 1, 'compress' => 1 or 0
Streams the PDF directly to the browser