1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Added option to configure PDF export paper size

For #995
This commit is contained in:
Dan Brown
2022-01-30 17:40:42 +00:00
parent e17cdab420
commit a709fd04b5
4 changed files with 31 additions and 1 deletions

View File

@@ -8,6 +8,11 @@
* Do not edit this file unless you're happy to maintain any changes yourself.
*/
$snappyPaperSizeMap = [
'a4' => 'A4',
'letter' => 'Letter',
];
return [
'pdf' => [
'enabled' => true,
@@ -15,6 +20,7 @@ return [
'timeout' => false,
'options' => [
'outline' => true,
'page-size' => $snappyPaperSizeMap[env('EXPORT_PAGE_SIZE', 'a4')] ?? 'A4',
],
'env' => [],
],