private function generateResponse($view, $contentDisposition, $parameters,
        $options)
    {
        return new Response(
            $this->getOutputFromView($view, $parameters, $options),
            200,
            array(
                'Content-Type'          => 'application/pdf',
                'Content-Disposition'   => $contentDisposition,
            )
        );
    }
private function generateResponse($view, $contentDisposition, $parameters,
        $options)
    {
        return new Response(
            $this->getOutputFromView($view, $parameters, $options),
            200,
            array(
                'Content-Type'          => 'application/pdf',
                'Content-Disposition'   => $contentDisposition,
            )
        );
    }
private function generateResponse ( $ view , $ contentDisposition , $ parameters , $ options ) { return new Response ( $ this -> getOutputFromView ( $ view , $ parameters , $ options ) , 200 , array ( 'Content-Type' => 'application/pdf' , 'Content-Disposition' => $ contentDisposition , ) ) ; }
Create a Response object for the inputted data.

@param  string   $view
@param  string   $contentDisposition
@param  array    $parameters
@param  array    $options    Additional options for WKHTMLToPDF.
Create a Response object for the inputted data .