Hello team,
We are using the Laravel 11 with Koolreport "koolreport/cloudexport": "4.2.0".
I have implemented a feature that exports PDF report files. While the report class displays the results quickly in the browser when we render the view, I believe that the service we are using (Cloud-Export with chromeHeadlessio) takes too long to prepare the report and send it to the browser.
We would like to continue using "ChromeHeadlessio". Could you please assist me with the following specific queries?
Please check. I have shared the code below. The code seems to work correctly, but I believe the service takes time.
$reportClass->run()
->cloudExport($reportView)
->chromeHeadlessio(config('services.chrome_headless_io_token_key'))
->settings([
"pageWaiting"=>"networkidle2",
"useLocalTempFolder" => true,
"autoDeleteLocalTempFile" => true,
])
->pdf([
"format" => "A4",
"zoom" => 0.5,
])
->toBrowser($fileName);
Please let me know if we are missing anything or need any details.
Regards, FinChamps