Method |
Description |
|
__call ( string $name, array $arguments ) : mixed |
Call Snappy instance. |
|
__construct ( Knp\Snappy\Image $snappy ) |
|
|
download ( string $filename = 'image.jpg' ) : Response |
Make the image downloadable by the user |
|
inline ( string $filename = 'image.jpg' ) : Illuminate\Http\Response |
Return a response with the image to show in the browser |
|
loadFile ( string $file ) : static |
Load a HTML file |
|
loadHTML ( string $string ) : static |
Load a HTML string |
|
loadView ( $view, $data = [], $mergeData = [] ) |
|
|
output ( ) : string |
Output the PDF as a string. |
|
save ( $filename, $overwrite = false ) : static |
Save the image to a file |
|
setOption ( $name, $value ) |
|
|
setOptions ( $options ) |
|
|
snappy ( ) : Knp\Snappy\Image |
Get the Snappy instance. |
|
stream ( string $filename = 'image.jpg' ) : Response |
Return a response with the image to show in the browser |
|