Hi, i've tried to download the pivot table to pdf but it's not working (it's working fine on rendering to view or export to xls), but on export to pdf, it just rendering the table (screenshot below)
My export code :
$report = new CustomReportPivot([
'data' => $result['data'],
'setting' => [
"column" => "Gender, Marital Status",
"row" => "Job Position, Job Level",
"count" => "Employee ID",
'sum' => '',
]
]);
$report->run();
$report->export()->pdf(array(
"format"=>"A4",
"orientation"=>"landscape",
)
)->toBrowser('test.pdf', true);