Skip to content

Commit 621493a

Browse files
committed
readme
1 parent ac63a4d commit 621493a

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

README.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,7 @@ return [
108108
* - SSSS-CCCC: 0001-0123
109109
* - YYCCCC: 220123
110110
*/
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',
117112

118113
/**
119114
* Define the default prefix used for each invoice type
@@ -150,40 +145,49 @@ return [
150145
'default_currency' => 'USD',
151146

152147
'pdf' => [
148+
149+
'paper' => [
150+
'paper' => 'a4',
151+
'orientation' => 'portrait',
152+
],
153+
153154
/**
154155
* Default DOM PDF options
155156
*
156157
* @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
157158
*/
158159
'options' => [
159-
'isPhpEnabled' => true,
160-
'fontHeightRatio' => 0.9,
160+
'isRemoteEnabled' => true,
161+
'isPhpEnabled' => false,
162+
'fontHeightRatio' => 1,
161163
/**
162164
* Supported values are: 'DejaVu Sans', 'Helvetica', 'Courier', 'Times', 'Symbol', 'ZapfDingbats'
163165
*/
164166
'defaultFont' => 'Helvetica',
165-
],
166167

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(),
170172
],
171173

172174
/**
173175
* The logo displayed in the PDF
174176
*/
175177
'logo' => null,
176178

177-
/**
178-
* The color displayed at the top of the PDF
179-
*/
180-
'color' => '#050038',
181-
182179
/**
183180
* The template used to render the PDF
184181
*/
185182
'template' => 'default.layout',
186183

184+
'template_data' => [
185+
/**
186+
* The color displayed at the top of the PDF
187+
*/
188+
'color' => '#050038',
189+
],
190+
187191
],
188192

189193
];

0 commit comments

Comments
 (0)