]> BookStack Code Mirror - bookstack/blob - app/Config/snappy.php
Skip intermediate login page with single provider
[bookstack] / app / Config / snappy.php
1 <?php
2
3 /**
4  * SnappyPDF configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10 $snappyPaperSizeMap = [
11     'a4'     => 'A4',
12     'letter' => 'Letter',
13 ];
14
15 return [
16     'pdf' => [
17         'enabled' => true,
18         'binary'  => file_exists(base_path('wkhtmltopdf')) ? base_path('wkhtmltopdf') : env('WKHTMLTOPDF', false),
19         'timeout' => false,
20         'options' => [
21             'outline'   => true,
22             'page-size' => $snappyPaperSizeMap[env('EXPORT_PAGE_SIZE', 'a4')] ?? 'A4',
23         ],
24         'env'     => [],
25     ],
26     'image' => [
27         'enabled' => false,
28         'binary'  => '/usr/local/bin/wkhtmltoimage',
29         'timeout' => false,
30         'options' => [],
31         'env'     => [],
32     ],
33 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.