coding style..
This commit is contained in:
@ -297,11 +297,13 @@ class Invoices extends Controller
|
||||
|
||||
$html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');
|
||||
|
||||
$file_name = $this->getDocumentFileName($invoice);
|
||||
|
||||
$pdf = app('dompdf.wrapper');
|
||||
$pdf->loadHTML($html);
|
||||
|
||||
//$pdf->setPaper('A4', 'portrait');
|
||||
|
||||
$file_name = $this->getDocumentFileName($invoice);
|
||||
|
||||
return $pdf->download($file_name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user