Page limit in DOMPDF - Laravel

Asked

Viewed 410 times

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 ?

  • Returns no error, simply loads a localhost page not answering the request.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.