0
Good afternoon, everyone,
I am making a requirement for printing DOMPDF, which is more than 200 pages. When I make the request it cannot generate, but if I pass a condition to generate up to a given record, less than that amount, it is generated. Is there a setting or limit that dompdf cannot generate? Someone had something like?
My consultation this way:
public function pdf()
{
$athletes = Category::join('athletes', 'categories.id', '=', 'category_id')
->select(
'athletes.id',
'athletes.name',
'athletes.city',
'athletes.birthday',
'athletes.academy',
'athletes.telephone',
'athletes.rg',
'athletes.cpf',
'athletes.genre',
'categories.initials',
'categories.weight',
'categories.description')
->whereBetween('categories.initials',['A1', 'G1']) //(Limite gerado)
->orderBy('categories.initials', 'ASC')
->get();
$html = view('admin.pdf.athletes', compact('athletes'));
$pdf = App::make('dompdf.wrapper');
$pdf->loadHTML($html)->setPaper('a4', 'landscape');
return $pdf->download('relatorio_atletas_2017.pdf');
}
Sincerely yours.
It returns some error or just does not generate ?
– Bruno
Returns no error, simply loads a localhost page not answering the request.
– Jhonny Costa