@@ -108,12 +108,7 @@ return [
108
108
* - SSSS-CCCC: 0001-0123
109
109
* - YYCCCC: 220123
110
110
*/
111
- 'format' => [
112
- InvoiceType::Invoice->value => 'PPYYCCCC',
113
- InvoiceType::Quote->value => 'PPYYCCCC',
114
- InvoiceType::Credit->value => 'PPYYCCCC',
115
- InvoiceType::Proforma->value => 'PPYYCCCC',
116
- ],
111
+ 'format' => 'PPYYCCCC',
117
112
118
113
/**
119
114
* Define the default prefix used for each invoice type
@@ -150,40 +145,49 @@ return [
150
145
'default_currency' => 'USD',
151
146
152
147
'pdf' => [
148
+
149
+ 'paper' => [
150
+ 'paper' => 'a4',
151
+ 'orientation' => 'portrait',
152
+ ],
153
+
153
154
/**
154
155
* Default DOM PDF options
155
156
*
156
157
* @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
157
158
*/
158
159
'options' => [
159
- 'isPhpEnabled' => true,
160
- 'fontHeightRatio' => 0.9,
160
+ 'isRemoteEnabled' => true,
161
+ 'isPhpEnabled' => false,
162
+ 'fontHeightRatio' => 1,
161
163
/**
162
164
* Supported values are: 'DejaVu Sans', 'Helvetica', 'Courier', 'Times', 'Symbol', 'ZapfDingbats'
163
165
*/
164
166
'defaultFont' => 'Helvetica',
165
- ],
166
167
167
- 'paper' => [
168
- 'paper' => 'a4',
169
- 'orientation' => 'portrait',
168
+ 'fontDir' => sys_get_temp_dir(),
169
+ 'fontCache' => sys_get_temp_dir(),
170
+ 'tempDir' => sys_get_temp_dir(),
171
+ 'chroot' => sys_get_temp_dir(),
170
172
],
171
173
172
174
/**
173
175
* The logo displayed in the PDF
174
176
*/
175
177
'logo' => null,
176
178
177
- /**
178
- * The color displayed at the top of the PDF
179
- */
180
- 'color' => '#050038',
181
-
182
179
/**
183
180
* The template used to render the PDF
184
181
*/
185
182
'template' => 'default.layout',
186
183
184
+ 'template_data' => [
185
+ /**
186
+ * The color displayed at the top of the PDF
187
+ */
188
+ 'color' => '#050038',
189
+ ],
190
+
187
191
],
188
192
189
193
];
0 commit comments