Property | Type | Description | |
---|---|---|---|
$config | Illuminate\Contracts\Config\Repository | ||
$dompdf | Dompdf\Dompdf | ||
$files | Illuminate\Filesystem\Filesystem | ||
$orientation | |||
$paper | |||
$public_path | |||
$rendered | |||
$showWarnings | |||
$view | Illuminate\Contracts\View\Factory |
Method | Description | |
---|---|---|
__construct ( Dompdf\Dompdf $dompdf, Illuminate\Contracts\Config\Repository $config, Illuminate\Filesystem\Filesystem $files, Illuminate\Contracts\View\Factory $view ) | ||
download ( string $filename = 'document.pdf' ) : Illuminate\Http\Response | Make the PDF downloadable by the user | |
getDomPDF ( ) : Dompdf\Dompdf | Get the DomPDF instance | |
loadFile ( string $file ) : static | Load a HTML file | |
loadHTML ( string $string, string $encoding = null ) : static | Load a HTML string | |
loadView ( string $view, array $data = [], array $mergeData = [], string $encoding = null ) : static | Load a View and convert to HTML | |
output ( ) : string | Output the PDF as a string. | |
save ( $filename ) : static | Save the PDF to a file | |
setOptions ( array $options ) : static | Set/Change an option in DomPdf | |
setPaper ( string $paper, string $orientation = 'portrait' ) | Set the paper size (default A4) | |
setWarnings ( boolean $warnings ) | Show or hide warnings | |
stream ( string $filename = 'document.pdf' ) : Illuminate\Http\Response | Return a response with the PDF to show in the browser |
Method | Description | |
---|---|---|
convertEntities ( $subject ) | ||
render ( ) | Render the PDF |
public __construct ( Dompdf\Dompdf $dompdf, Illuminate\Contracts\Config\Repository $config, Illuminate\Filesystem\Filesystem $files, Illuminate\Contracts\View\Factory $view ) | ||
$dompdf | Dompdf\Dompdf | |
$config | Illuminate\Contracts\Config\Repository | |
$files | Illuminate\Filesystem\Filesystem | |
$view | Illuminate\Contracts\View\Factory |
public getDomPDF ( ) : Dompdf\Dompdf | ||
return | Dompdf\Dompdf |
public save ( $filename ) : static | ||
$filename | ||
return | static |
public setOptions ( array $options ) : static | ||
$options | array | |
return | static |
public setWarnings ( boolean $warnings ) | ||
$warnings | boolean |
protected Repository,Illuminate\Contracts\Config $config | ||
return | Illuminate\Contracts\Config\Repository |
protected Filesystem,Illuminate\Filesystem $files | ||
return | Illuminate\Filesystem\Filesystem |