Skip to content

Commit f40d778

Browse files
authored
Enhance PDF configuration with page options
1 parent 1649008 commit f40d778

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/weasyprint.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
'pdf' => [
3333
'binary' => env('WEASYPRINT_BINARY', '/usr/local/bin/weasyprint'),
3434
'timeout' => 10, // Default timeout is 10 seconds
35+
'page' => [ // By default uses @page { size: <format> <orientation> }, eg 'size: A4 landscape'
36+
'size' => null,
37+
'orientation' => null,
38+
],
3539
'options' => [
3640
'encoding' => null,
3741
'stylesheet' => [], //An optional list of user stylesheets. The list can include are CSS objects, filenames, URLs, or file-like objects.s

0 commit comments

Comments
 (0)