I'm having problem with generating pdf using dompdf. I'm using following code to generate the pdf:
$pdf = PDF::loadView('myview', compact('data', 'data2'));
return $pdf->stream($file_name . '.pdf');
It's generating pdf but the problem is datatable. Apart from this data showing on the page there is a datatable in the view which has serverside ajax call to generate datatable. Dompdf is not generating thos data when it creats pdf file. Any help would appreciated.
Thank you,