original_string: public function createFromView($view, $filename, $inline = false)
      {
          $this->generateFilePaths();
          $this->generatePdf($view);
  
          $contentDisposition = $inline ? 'inline' : 'attachment';
          return (new BinaryFileResponse($this->pdfPath))
              ->setContentDisposition($contentDisposition, $filename)
              ->deleteFileAfterSend(true);
      }
code: public function createFromView($view, $filename, $inline = false)
      {
          $this->generateFilePaths();
          $this->generatePdf($view);
  
          $contentDisposition = $inline ? 'inline' : 'attachment';
          return (new BinaryFileResponse($this->pdfPath))
              ->setContentDisposition($contentDisposition, $filename)
              ->deleteFileAfterSend(true);
      }
code_tokens: public function createFromView ( $ view , $ filename , $ inline = false ) { $ this -> generateFilePaths ( ) ; $ this -> generatePdf ( $ view ) ; $ contentDisposition = $ inline ? 'inline' : 'attachment' ; return ( new BinaryFileResponse ( $ this -> pdfPath ) ) -> setContentDisposition ( $ contentDisposition , $ filename ) -> deleteFileAfterSend ( true ) ; }
docstring: Create a PDF from a view or string
  @param string|object $view
  @param string $filename
  @param bool $inline
  @return BinaryFileResponse
docstring_tokens: Create a PDF from a view or string