Phantom adjustment for preview
This commit is contained in:
parent
b593cb0ff3
commit
a99f871fb7
1 changed files with 4 additions and 0 deletions
|
|
@ -198,6 +198,10 @@ class PreviewController extends BaseController
|
|||
->design($design)
|
||||
->build();
|
||||
|
||||
if (config('ninja.phantomjs_pdf_generation')) {
|
||||
return (new Phantom)->convertHtmlToPdf($maker->getCompiledHTML(true));
|
||||
}
|
||||
|
||||
$file_path = PreviewPdf::dispatchNow($maker->getCompiledHTML(true), auth()->user()->company());
|
||||
|
||||
DB::rollBack();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue