public function echoPdfContent($content, $filename, $download = false)
    {
        // \MUtil_Echo::track($filename);
        if ($download) {
            // Download & save
			header('Content-Type: application/x-download');
        } else {
            //We send to a browser
            header('Content-Type: application/pdf');
        }
        header('Content-Length: '.strlen($content));
        header('Content-Disposition: inline; filename="'.$filename.'"');
        header('Cache-Control: private, max-age=0, must-revalidate');
        header('Pragma: public');

        echo $content;
    }
public function echoPdfContent($content, $filename, $download = false)
    {
        // \MUtil_Echo::track($filename);
        if ($download) {
            // Download & save
			header('Content-Type: application/x-download');
        } else {
            //We send to a browser
            header('Content-Type: application/pdf');
        }
        header('Content-Length: '.strlen($content));
        header('Content-Disposition: inline; filename="'.$filename.'"');
        header('Cache-Control: private, max-age=0, must-revalidate');
        header('Pragma: public');

        echo $content;
    }
public function echoPdfContent ( $ content , $ filename , $ download = false ) { // \MUtil_Echo::track($filename); if ( $ download ) { // Download & save header ( 'Content-Type: application/x-download' ) ; } else { //We send to a browser header ( 'Content-Type: application/pdf' ) ; } header ( 'Content-Length: ' . strlen ( $ content ) ) ; header ( 'Content-Disposition: inline; filename="' . $ filename . '"' ) ; header ( 'Cache-Control: private, max-age=0, must-revalidate' ) ; header ( 'Pragma: public' ) ; echo $ content ; }
Output the pdf with the right headers.

@param string $content The content to echo
@param string $filename The filename as reported to the downloader
@param boolean $download Download to file or when false: show in browser
Output the pdf with the right headers .