gpt4 book ai didi

laravel - barryvdh/laravel-dompdf :- fopen failed to open stream: No such file or directory in laravel 5. 7

转载 作者:行者123 更新时间:2023-12-03 21:20:35 78 4
gpt4 key购买 nike

当我想下载 invoice.pdf 时出现错误:-

fopen(project_path\storage\fonts/\071ddd89a9cb147bf5639344caee3fe8.ufm): failed to open stream: No such file or directory



enter image description here

在存储下创建字体文件夹后也出现错误:

"execution times up" maximum execution time is 30 sec.



enter image description here

我现在应该怎么办?

最佳答案

经过一路测试,我得到了“fopen failed”和“execution time expired”的完美解决方案。

当您使用发票代码扩展主文件时会发生这种情况

@extends('admin.master')
@section('body')
/* your invoice code*/
@sectionend

为避免所有问题,只需在下载发票 Blade 中粘贴发票的源代码,例如
<!doctype html>

<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BigStore: Shopping Invoice</title>
</head>
<body>


<style>
/*css*/
</style>
<br>
/**html code**/
</body>
</html>

关于laravel - barryvdh/laravel-dompdf :- fopen failed to open stream: No such file or directory in laravel 5. 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54474036/

78 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com