Warum lädt mein Code die Google -Diagrammbibliothek nicht?Php

PHP-Programmierer chatten hier
Anonymous
 Warum lädt mein Code die Google -Diagrammbibliothek nicht?

Post by Anonymous »

Verwenden von Laravel Snappy, um ein PDF mit einem Diagramm mit der Google -Diagramm -Bibliothek zu generieren: < /p>

Code: Select all

[2022-09-07 10:12:32] local.ERROR: The exit status code '-1073741819' says something went wrong:
stderr: "Loading pages (1/6)
[>                                                           ] 0%
[======>                                                     ] 10%
[========>                                                   ] 14%
Warning: Failed to load http://www.gstatic.com/charts/loader.js (ignore)
"
stdout: ""
command: C:\"Program Files"\wkhtmltopdf\bin\wkhtmltopdf --lowquality --enable-javascript --javascript-delay "1200000" --enable-smart-shrinking --no-stop-slow-scripts "C:\Users\santosh\AppData\Local\Temp\knp_snappy63186e90573620.16051650.html" "C:\Users\santosh\AppData\Local\Temp\knp_snappy63186e90578264.77645537.pdf".
< /code>
Der Controller: < /p>
try{
$render = view('graph')->render();
$pdf = \PDF::loadView('graph');
$pdf->setOption('enable-javascript', true);
$pdf->setOption('javascript-delay', 1200000);
$pdf->setOption('enable-smart-shrinking', true);
$pdf->setOption('no-stop-slow-scripts', true);
return $pdf->download('graph.pdf');
}catch(Exception $e){
Log::error($e->getMessage());
}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post