Barryvdh\Snappy\PdfWrapper::inline PHP Method

inline() public method

Return a response with the PDF to show in the browser
public inline ( string $filename = 'document.pdf' ) : Illuminate\Http\Response
$filename string
return Illuminate\Http\Response
    public function inline($filename = 'document.pdf')
    {
        return new Response($this->output(), 200, array('Content-Type' => 'application/pdf', 'Content-Disposition' => 'inline; filename="' . $filename . '"'));
    }