PHP Class CanGelis\L4pdf\PDF

Inheritance: extends CanGelis\PDF\PDF
Show file Open project: cangelis/l4pdf

Public Methods

Method Description
download ( string $as = null ) : Illuminate\Http\Response Get the PDF Content as an attachment
loadView ( string $viewName, array $data = [], array $mergeData = [] ) Loads the Input Content from the view
stream ( string $as = null ) : Illuminate\Http\Response Display the PDF Document in the browser window

Protected Methods

Method Description
createResponse ( ) : Illuminate\Http\Response Creates a response object with proper Content-type for PDF Doc.
getAs ( string $as = null ) : string Gets the attachment name for the Response

Method Details

createResponse() protected method

Creates a response object with proper Content-type for PDF Doc.
protected createResponse ( ) : Illuminate\Http\Response
return Illuminate\Http\Response

download() public method

Get the PDF Content as an attachment
public download ( string $as = null ) : Illuminate\Http\Response
$as string
return Illuminate\Http\Response

getAs() protected method

Gets the attachment name for the Response
protected getAs ( string $as = null ) : string
$as string
return string

loadView() public method

Loads the Input Content from the view
public loadView ( string $viewName, array $data = [], array $mergeData = [] )
$viewName string
$data array
$mergeData array

stream() public method

Display the PDF Document in the browser window
public stream ( string $as = null ) : Illuminate\Http\Response
$as string
return Illuminate\Http\Response