KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Export to PDF is Blank #1259

Closed Andre Van Der Walt opened this topic on on Jan 15, 2020 - 1 comments

Andre Van Der Walt commented on Jan 15, 2020

Hello I am working on Ubuntu, I have install the phantomjs, was having the error Error! Please set executable permission for phantomjs on windows. Been able to export the pdf without this error by running chmod 777 on the export/bin folder. But now I am getting blank pdf. I am using the following to export with a custom view

                                $report ->run()
                                ->export($reports['source'].'Pdf')
                                ->pdf()
                                ->toBrowser($reports['source'].'.pdf');

Am I doing something wrong please. Thanks in advances

Andre Van Der Walt commented on Jan 15, 2020

Been able to fixed it using:

                                $report ->run()
                                ->export($reports['source'].'Pdf')
                                ->settings(array(
                                       "useLocalTempFolder"=>true,
                                 ))
                                ->pdf(array(
                                       "format"=>"A4",
                                       "orientation"=>"portrait"
                                ))
                                ->toBrowser($reports['source'].'.pdf');

Hope it helps someone in futur. Thanks

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

Export