Method |
Description |
|
__call ( string $name, array $arguments ) : mixed |
Call Snappy instance. |
|
__construct ( Knp\Snappy\Pdf $snappy ) |
|
|
download ( string $filename = 'document.pdf' ) : Illuminate\Http\Response |
Make the PDF downloadable by the user |
|
inline ( string $filename = 'document.pdf' ) : Illuminate\Http\Response |
Return a response with the PDF to show in the browser |
|
loadFile ( string $file ) |
Load a HTML file |
|
loadHTML ( string $string ) |
Load a HTML string |
|
loadView ( string $view, array $data = [], array $mergeData = [] ) |
Load a View and convert to HTML |
|
output ( ) : string |
Output the PDF as a string. |
|
save ( $filename, $overwrite = false ) |
Save the PDF to a file |
|
setOption ( string $name, mixed $value ) |
|
|
setOptions ( array $options ) |
|
|
setOrientation ( string $orientation ) |
Set the orientation (default portrait) |
|
setPaper ( string $paper, string $orientation = null ) |
Set the paper size (default A4) |
|
setWarnings ( boolean $warnings ) |
Show or hide warnings |
|
snappy ( ) : Knp\Snappy\Pdf |
Get the Snappy instance. |
|
stream ( string $filename = 'document.pdf' ) : Symfony\Component\HttpFoundation\StreamedResponse |
Return a response with the PDF to show in the browser |
|