We are creating a new package called CloudExport which will use online service to export your report to PDF or other formats. We also implemented the export service called ChromeHeadless.io. Right now the service is in beta stage.
So to use the CloudExport package, you do:
1.Download the beta version from below link:
https://www.dropbox.com/s/mkvihselex6jaq9/cloudexport.zip?dl=0
unzip it to the koolreport/packages
folder as you normally do for other packages.
2.Register an account in https://chromeheadless.io and create a token
3.Now in your report, you add:
class MyReport extends \koolreport\KoolReport
{
use \koolreport\cloudexport\Exportable;
...
}
4.Export your report with following code:
$report = new MyReport;
$report->run()->cloudExport()
->chromeHeadlessio("your-token-key-here")
->pdf()
->toBrowser("myreport.pdf");
Since it is in beta version, we hope to receive your feedback on the packages as well as the cloud service for us to improve. We will update more documentation detail. Thank you very much!
Best regards,
<3 koolreport team