12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
-
- return [
-
- /*
- |--------------------------------------------------------------------------
- | Snappy PDF / Image Configuration
- |--------------------------------------------------------------------------
- |
- | This option contains settings for PDF generation.
- |
- | Enabled:
- |
- | Whether to load PDF / Image generation.
- |
- | Binary:
- |
- | The file path of the wkhtmltopdf / wkhtmltoimage executable.
- |
- | Timeout:
- |
- | The amount of time to wait (in seconds) before PDF / Image generation is stopped.
- | Setting this to false disables the timeout (unlimited processing time).
- |
- | Options:
- |
- | The wkhtmltopdf command options. These are passed directly to wkhtmltopdf.
- | See https://wkhtmltopdf.org/usage/wkhtmltopdf.txt for all options.
- |
- | Env:
- |
- | The environment variables to set while running the wkhtmltopdf process.
- |
- */
-
- 'pdf' => [
- 'enabled' => true,
- 'binary' => env('WKHTMLTOPDF_BINARY', '/usr/local/bin/wkhtmltopdf'),
- 'timeout' => false,
- 'options' => [
- 'no-pdf-compression' => true,
- 'disable-javascript' => true,
- 'margin-top' => '10mm',
- 'margin-right' => '7.5mm',
- 'margin-bottom' => '15mm',
- 'margin-left' => '7.5mm',
- 'page-size' => 'Letter',
- 'footer-right' => 'Page [page] / [toPage]',
- 'footer-font-size' => '8',
- 'footer-spacing' => '5',
- 'zoom' => '1.3',
- ],
- 'env' => [],
- ],
-
- 'image' => [
- 'enabled' => true,
- 'binary' => env('WKHTMLTOIMAGE_BINARY', '/usr/local/bin/wkhtmltoimage'),
- 'timeout' => false,
- 'options' => [],
- 'env' => [],
- ],
-
- ];
|