PHP-Programmierer chatten hier
Anonymous
Warum lädt mein Code die Google -Diagrammbibliothek nicht?
Post
by Anonymous » 18 Aug 2025, 06:43
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());
}
1755492224
Anonymous
Verwenden von Laravel Snappy, um ein PDF mit einem Diagramm mit der Google -Diagramm -Bibliothek zu generieren: < /p> [code][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()); } [/code]
0 Replies
28 Views
Last post by Guest
11 Jan 2025, 05:34
0 Replies
10 Views
Last post by Anonymous
18 May 2025, 23:41
0 Replies
41 Views
Last post by Guest
07 Jan 2025, 06:27
0 Replies
11 Views
Last post by Guest
19 Jan 2025, 19:09
0 Replies
9 Views
Last post by Anonymous
07 Apr 2025, 04:36