Hi team,
I have to send the reports as pdf in an email. Emails will be sent by a scheduler in Laravel (Using the command line).
For storing pdf on the server I am using saveAs()
method in place of toBrowser()
as suggested in the Koolreport documentation.
But when I started to use it is giving an error for undefined request URI (PHP Notice: Undefined index: REQUEST_URI in /myproject/vendor/koolreport/export/Handler.php on line 193
).
So I added a line in the beginning $_SERVER['request_uri'] = ''.
And after that, my pdf is saved on the server successfully but the pie charts and logo images are not shown inside pdf.
This is a high-priority task for my project but I am stuck due to this problem.
If possible please look into this issue asap.
Thanks