質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
header('Content-Type: application/pdf');
|
88
88
|
|
89
|
-
header('Content-Disposition: attachment;filename="'明細.pdf"');
|
89
|
+
header('Content-Disposition: attachment;filename="'.$params.'明細.pdf"');
|
90
90
|
|
91
91
|
header('Cache-Control: max-age=0');
|
92
92
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
```
|
15
|
+
```html
|
16
16
|
|
17
17
|
body style="font-family: ipagothic;">
|
18
18
|
|
@@ -82,4 +82,30 @@
|
|
82
82
|
|
83
83
|
```
|
84
84
|
|
85
|
+
```php
|
86
|
+
|
87
|
+
header('Content-Type: application/pdf');
|
88
|
+
|
89
|
+
header('Content-Disposition: attachment;filename="'明細.pdf"');
|
90
|
+
|
91
|
+
header('Cache-Control: max-age=0');
|
92
|
+
|
93
|
+
$pdf = PDF::loadHTML(view('my.pdf', [
|
94
|
+
|
95
|
+
])->render());
|
96
|
+
|
97
|
+
$pdf->getDomPDF()->set_option('enable_font_subsetting', true);
|
98
|
+
|
99
|
+
error_reporting(0);
|
100
|
+
|
101
|
+
$pdf->save('php://output');
|
102
|
+
|
103
|
+
error_reporting(E_ALL);
|
104
|
+
|
105
|
+
exit;
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
|
110
|
+
|
85
111
|
何卒よろしくお願い申し上げます。
|