snappy.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Snappy PDF / Image Configuration
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option contains settings for PDF generation.
  9. |
  10. | Enabled:
  11. |
  12. | Whether to load PDF / Image generation.
  13. |
  14. | Binary:
  15. |
  16. | The file path of the wkhtmltopdf / wkhtmltoimage executable.
  17. |
  18. | Timout:
  19. |
  20. | The amount of time to wait (in seconds) before PDF / Image generation is stopped.
  21. | Setting this to false disables the timeout (unlimited processing time).
  22. |
  23. | Options:
  24. |
  25. | The wkhtmltopdf command options. These are passed directly to wkhtmltopdf.
  26. | See https://wkhtmltopdf.org/usage/wkhtmltopdf.txt for all options.
  27. |
  28. | Env:
  29. |
  30. | The environment variables to set while running the wkhtmltopdf process.
  31. |
  32. */
  33. 'pdf' => [
  34. 'enabled' => true,
  35. 'binary' => env('WKHTML_PDF_BINARY', '/usr/local/bin/wkhtmltopdf'),
  36. 'timeout' => false,
  37. 'options' => [],
  38. 'env' => [],
  39. ],
  40. 'image' => [
  41. 'enabled' => true,
  42. 'binary' => env('WKHTML_IMG_BINARY', '/usr/local/bin/wkhtmltoimage'),
  43. 'timeout' => false,
  44. 'options' => [],
  45. 'env' => [],
  46. ],
  47. ];