KoolReport's Forum

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

Export with chrome #3436

Open Giri Rajan opened this topic on on Apr 22 - 1 comments

Giri Rajan commented on Apr 22

Hi Team,

      I am using below code

$reportData->run()->export()

->settings([  // Ensure no PhantomJS settings are here
    "useLocalTempFolder" => true,
    "autoDeleteLocalTempFile" => true,
    "autoDeleteTempFile" => true,
  //  "chromePath" => "/usr/bin/google-chrome",  // Ensure the correct path to Google Chrome
  "chromePath" => "/usr/bin/google-chrome", 
  "resourceWaiting" => 2000,
    "serverLocalAddress" => "localhost",
    // Remove any phantomjs setting if there are any.
])
->pdf([
    "format" => $pageSize,  // A4, A3, etc.
    "orientation" => $pageOrientation,
    "scale" => 1.5  // 150% zoom with Chromium
])
->toBrowser("export.pdf");

but while run below issues are occur

Could not find phantomjs executed file in bin folder

Note: when we use photomJs its working fine but we need scale option for pdf with 150% zooming

Sebastian Morales commented on Apr 23

It could be that you have not installed PhantomJS for the Export package yet. If that is the case pls follow this guide to install it:

https://www.koolreport.com/docs/export/overview/#installation-download-phantomjs

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