【发布时间】:2019-06-26 20:57:30
【问题描述】:
我研究了如何在刀片中显示 pdf 文件。我找到了这个答案。但是我应该在刀片中做什么来显示文件?
$filename = 'test.pdf';
$path = storage_path($filename);
return Response::make(file_get_contents($path), 200, [
'Content-Type'
=> 'application/pdf',
'Content-Disposition' => 'inline; filename="'.$filename.'"'
如何在刀片中显示结果(pdf)?
【问题讨论】:
-
我的意思是如何在刀片的