2017-01-01 13:20:30 +01:00
|
|
|
<?php
|
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
/**
|
|
|
|
* SnappyPDF configuration options.
|
|
|
|
*
|
|
|
|
* Changes to these config files are not supported by BookStack and may break upon updates.
|
|
|
|
* Configuration should be altered via the `.env` file or environment variables.
|
|
|
|
* Do not edit this file unless you're happy to maintain any changes yourself.
|
|
|
|
*/
|
|
|
|
|
2017-01-01 13:20:30 +01:00
|
|
|
return [
|
|
|
|
'pdf' => [
|
|
|
|
'enabled' => true,
|
|
|
|
'binary' => file_exists(base_path('wkhtmltopdf')) ? base_path('wkhtmltopdf') : env('WKHTMLTOPDF', false),
|
|
|
|
'timeout' => false,
|
2020-04-25 22:37:52 +02:00
|
|
|
'options' => [
|
|
|
|
'outline' => true
|
|
|
|
],
|
2017-01-01 13:20:30 +01:00
|
|
|
'env' => [],
|
|
|
|
],
|
|
|
|
'image' => [
|
|
|
|
'enabled' => false,
|
|
|
|
'binary' => '/usr/local/bin/wkhtmltoimage',
|
|
|
|
'timeout' => false,
|
|
|
|
'options' => [],
|
|
|
|
'env' => [],
|
|
|
|
],
|
|
|
|
];
|