mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Enabled debugging proposal PDF
This commit is contained in:
parent
164d466369
commit
e6dddd3736
@ -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();
|
||||
|
||||
if ($request->debug) {
|
||||
$mpdf->Output();
|
||||
} else {
|
||||
$mpdf->Output($proposal->present()->filename, 'D');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user