Enabled debugging proposal PDF
This commit is contained in:
parent
164d466369
commit
e6dddd3736
1 changed files with 6 additions and 4 deletions
|
|
@ -168,11 +168,13 @@ class ProposalController extends BaseController
|
|||
$proposal = $request->entity();
|
||||
|
||||
$mpdf = new mPDF();
|
||||
$mpdf->showImageErrors = config('app.debug');
|
||||
//$mpdf->showImageErrors = config('app.debug');
|
||||
$mpdf->WriteHTML($proposal->present()->htmlDocument);
|
||||
|
||||
//$mpdf->Output();
|
||||
|
||||
$mpdf->Output($proposal->present()->filename, 'D');
|
||||
if ($request->debug) {
|
||||
$mpdf->Output();
|
||||
} else {
|
||||
$mpdf->Output($proposal->present()->filename, 'D');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue