KoolReport's Forum

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

Export to pdf is failing sometimes #2194

Open Richb201 opened this topic on on Jul 9, 2021 - 2 comments

Richb201 commented on Jul 9, 2021

I am getting this downloaded sometimes.

    $report->run()
        ->export('Executive_summary')
        ->pdf(array(
            "format" => "A4",
            "orientation" => "portrait",
            //"zoom"=>2
        ))
        ->toBrowser("executive_summary.pdf");

If I try to open directly from the hard drive I get this:

Any idea why?

Sebastian Morales commented on Jul 9, 2021

Pls open your failed pdf file in your text editor and see its content (or lack of). Post a screenshot of the text content if it's possible. Rgds,

cfsinc commented on Jul 11, 2021

you should post all the code. you are only posting the export code snippet.

no one can answer these questions without the code that ties into this. What does your executive_summary look like? If you truly want help from The Team and form others on here, all I can say is post way more detail.

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
None yet

None