src/PDF.php
public function download($view, $data = [], $name = 'download')
    {
        $path = $this->processOutput($view, $data);

        return $this->responseDownload($path, $name);
    }
public function download($view, $data = [], $name = 'download')
    {
        $path = $this->processOutput($view, $data);

        return $this->responseDownload($path, $name);
    }
public function download ( $ view , $ data = [ ] , $ name = 'download' ) { $ path = $ this -> processOutput ( $ view , $ data ) ; return $ this -> responseDownload ( $ path , $ name ) ; }
Download generated pdf file.

@param string $view
@param array  $data
@param string $name

@return \Symfony\Component\HttpFoundation\Response
Download generated pdf file .