protected function echoPdf(\Zend_Pdf $pdf, $filename, $download = false, $exit = true)
    {
        $content = $pdf->render();

        $this->echoPdfContent($content, $filename, $download);

        if ($exit) {
            // No further output
            exit;
        }
    }
protected function echoPdf(\Zend_Pdf $pdf, $filename, $download = false, $exit = true)
    {
        $content = $pdf->render();

        $this->echoPdfContent($content, $filename, $download);

        if ($exit) {
            // No further output
            exit;
        }
    }
protected function echoPdf ( \ Zend_Pdf $ pdf , $ filename , $ download = false , $ exit = true ) { $ content = $ pdf -> render ( ) ; $ this -> echoPdfContent ( $ content , $ filename , $ download ) ; if ( $ exit ) { // No further output exit ; } }
Echos the pdf as output with the specified filename.

When download is true the file is returned as a download link,
otherwise the pdf is shown in the browser.

@param \Zend_Pdf $pdf
@param string $filename
@param boolean $download
@param boolean $exit Should the application stop running after output
Echos the pdf as output with the specified filename .