I make a report with maatwebsite and download it to xls and works fine, but now I need to export it to PDF, so when it exports to PDF only returns the first page, even if has multiple sheets.
Excel::create('name', function ($excel) {
foreach ($categories as $value) {
$excel->sheet($value['name'], function($sheet) {
...
});
}
})->download('pdf');
How can I see all pages? I'm using laravel 4.2, maatwebsite/excel 1.3.0 and mpdf 6.0.0